| 1 | <?php |
||
| 11 | trait AllTrait |
||
| 12 | { |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @param null $end string |
||
| 16 | * @return string |
||
| 17 | */ |
||
| 18 | abstract public function endpoint($end = null); |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Get a list of all agents for the given query parameters eg $query = ['page' => 2] |
||
| 22 | * |
||
| 23 | * @param array|null $query |
||
| 24 | * @throws \Freshdesk\Exceptions\AccessDeniedException |
||
| 25 | * @throws \Freshdesk\Exceptions\ApiException |
||
| 26 | * @throws \Freshdesk\Exceptions\AuthenticationException |
||
| 27 | * @throws \Freshdesk\Exceptions\ConflictingStateException |
||
| 28 | * @throws \Freshdesk\Exceptions\NotFoundException |
||
| 29 | * @throws \Freshdesk\Exceptions\RateLimitExceededException |
||
| 30 | * @throws \Freshdesk\Exceptions\UnsupportedContentTypeException |
||
| 31 | * @throws \Freshdesk\Exceptions\MethodNotAllowedException |
||
| 32 | * @throws \Freshdesk\Exceptions\UnsupportedAcceptHeaderException |
||
| 33 | * @throws \Freshdesk\Exceptions\ValidationException |
||
| 34 | */ |
||
| 35 | public function all(array $query = null) |
||
| 39 | |||
| 40 | } |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: