1 | <?php |
||
20 | trait GetAllForAccountTrait |
||
21 | { |
||
22 | /** |
||
23 | * @param string $id |
||
24 | * @param array|null $params |
||
25 | * |
||
26 | * @throws \Zibios\WrikePhpLibrary\Exception\Api\ServerErrorException |
||
27 | * @throws \Zibios\WrikePhpLibrary\Exception\Api\ResourceNotFoundException |
||
28 | * @throws \Zibios\WrikePhpLibrary\Exception\Api\ParameterRequiredException |
||
29 | * @throws \Zibios\WrikePhpLibrary\Exception\Api\NotAuthorizedException |
||
30 | * @throws \Zibios\WrikePhpLibrary\Exception\Api\NotAllowedException |
||
31 | * @throws \Zibios\WrikePhpLibrary\Exception\Api\InvalidRequestException |
||
32 | * @throws \Zibios\WrikePhpLibrary\Exception\Api\InvalidParameterException |
||
33 | * @throws \Zibios\WrikePhpLibrary\Exception\Api\ApiException |
||
34 | * @throws \Zibios\WrikePhpLibrary\Exception\Api\AccessForbiddenException |
||
35 | * @throws \LogicException |
||
36 | * @throws \InvalidArgumentException |
||
37 | * @throws \Exception |
||
38 | * |
||
39 | * @return mixed |
||
40 | */ |
||
41 | 20 | public function getAllForAccount($id, array $params = []) |
|
50 | |||
51 | /** |
||
52 | * @param string $requestMethod |
||
53 | * @param string $requestScope |
||
54 | * @param array $params |
||
55 | * @param string|array $id |
||
56 | * |
||
57 | * @throws \Zibios\WrikePhpLibrary\Exception\Api\ServerErrorException |
||
58 | * @throws \Zibios\WrikePhpLibrary\Exception\Api\ResourceNotFoundException |
||
59 | * @throws \Zibios\WrikePhpLibrary\Exception\Api\ParameterRequiredException |
||
60 | * @throws \Zibios\WrikePhpLibrary\Exception\Api\NotAuthorizedException |
||
61 | * @throws \Zibios\WrikePhpLibrary\Exception\Api\NotAllowedException |
||
62 | * @throws \Zibios\WrikePhpLibrary\Exception\Api\InvalidRequestException |
||
63 | * @throws \Zibios\WrikePhpLibrary\Exception\Api\InvalidParameterException |
||
64 | * @throws \Zibios\WrikePhpLibrary\Exception\Api\ApiException |
||
65 | * @throws \Zibios\WrikePhpLibrary\Exception\Api\AccessForbiddenException |
||
66 | * @throws \LogicException |
||
67 | * @throws \InvalidArgumentException |
||
68 | * @throws \Exception |
||
69 | * |
||
70 | * @return mixed |
||
71 | */ |
||
72 | abstract protected function executeRequest( |
||
78 | } |
||
79 |