| 1 | <?php | ||
| 3 | class GetPosts extends AbstractRequest | ||
|  | |||
| 4 | { | ||
| 5 | public $lastPostId; | ||
| 6 | |||
| 7 | /** | ||
| 8 | * @var Location | ||
| 9 | */ | ||
| 10 | public $location; | ||
| 11 | public $url; | ||
| 12 | |||
| 13 | |||
| 14 | function setUrl ($url) | ||
| 18 | |||
| 19 | function getUrl () | ||
| 23 | |||
| 24 | function setLastPostId ($lastPostId) | ||
| 28 | |||
| 29 | function getlastPostId () | ||
| 33 | |||
| 34 | function getApiEndPoint() | ||
| 68 | } | ||
| 69 | 
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.