| 1 | <?php |
||
| 12 | class TwitterIdentifier extends DataObjectDecorator |
||
|
|
|||
| 13 | { |
||
| 14 | |||
| 15 | //TwitterHandle |
||
| 16 | //TwitterAccessToken |
||
| 17 | public function extraStatics() |
||
| 34 | |||
| 35 | /** |
||
| 36 | * connect and disconnect button |
||
| 37 | * @return Object (IsConnected, Link, ConnectedName, ConnectedImageURL) |
||
| 38 | */ |
||
| 39 | public function getTwitterButton($backURL = "") |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Does the user have (or had) a connection with twitter? |
||
| 46 | * @return Boolean |
||
| 47 | */ |
||
| 48 | public function hasTwitter() |
||
| 52 | |||
| 53 | /** |
||
| 54 | * link to profile |
||
| 55 | * @return String |
||
| 56 | */ |
||
| 57 | public function TwitterLink() |
||
| 64 | } |
||
| 65 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.