1 | <?php |
||
11 | abstract class AbstractEntity |
||
12 | { |
||
13 | const PER_CALL = 50; |
||
14 | |||
15 | /** |
||
16 | * @var string |
||
17 | */ |
||
18 | protected static $endpoint; |
||
19 | |||
20 | /** |
||
21 | * @var Api |
||
22 | */ |
||
23 | protected $api; |
||
24 | |||
25 | /** |
||
26 | * AbstractEntity constructor. |
||
27 | * @param Api $api |
||
28 | */ |
||
29 | public function __construct(Api $api) |
||
33 | |||
34 | /** |
||
35 | * @param array $query |
||
36 | * @param array $options |
||
37 | * @return \Psr\Http\Message\ResponseInterface |
||
38 | */ |
||
39 | public function get(array $query = [], array $options = []) |
||
47 | |||
48 | /** |
||
49 | * @param array $query |
||
50 | * @param array $options |
||
51 | * @return array |
||
52 | */ |
||
53 | public function getAll(array $query = [], array $options = []) |
||
76 | |||
77 | /** |
||
78 | * @param array $query |
||
79 | * @param array $options |
||
80 | * @return array |
||
81 | */ |
||
82 | private function setOptions(array $query, array $options) |
||
92 | } |
||
93 |