| 1 | <?php |
||
| 16 | trait AllTrait |
||
| 17 | { |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @param null $end string |
||
| 21 | * @return string |
||
| 22 | * @internal |
||
| 23 | */ |
||
| 24 | abstract protected function endpoint($end = null); |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @return \Freshdesk\Api |
||
| 28 | * @internal |
||
| 29 | */ |
||
| 30 | abstract protected function api(); |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Get a list of all agents. |
||
| 34 | * |
||
| 35 | * Use filters ($query) to view only specific resources (those which match the criteria that you choose). |
||
| 36 | * |
||
| 37 | * @api |
||
| 38 | * @param array|null $query |
||
| 39 | * @return array|null |
||
| 40 | * @throws \Freshdesk\Exceptions\AccessDeniedException |
||
| 41 | * @throws \Freshdesk\Exceptions\ApiException |
||
| 42 | * @throws \Freshdesk\Exceptions\AuthenticationException |
||
| 43 | * @throws \Freshdesk\Exceptions\ConflictingStateException |
||
| 44 | * @throws \Freshdesk\Exceptions\NotFoundException |
||
| 45 | * @throws \Freshdesk\Exceptions\RateLimitExceededException |
||
| 46 | * @throws \Freshdesk\Exceptions\UnsupportedContentTypeException |
||
| 47 | * @throws \Freshdesk\Exceptions\MethodNotAllowedException |
||
| 48 | * @throws \Freshdesk\Exceptions\UnsupportedAcceptHeaderException |
||
| 49 | * @throws \Freshdesk\Exceptions\ValidationException |
||
| 50 | */ |
||
| 51 | public function all(array $query = null) |
||
| 55 | } |
||
| 56 |