Total Complexity | 3 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
6 | class EventEndpoint extends AbstractEndpoint |
||
7 | { |
||
8 | /** |
||
9 | * @param array $query |
||
10 | * @return array|GenericEntity[] |
||
11 | */ |
||
12 | public function findAll(array $query = array()) |
||
13 | { |
||
14 | $request = new GetJson('/admin/events.json', $query); |
||
15 | $response = $this->sendPaged($request, 'events'); |
||
16 | return $this->createCollection($response); |
||
17 | } |
||
18 | |||
19 | /** |
||
20 | * @param array $query |
||
21 | * @return int |
||
22 | */ |
||
23 | public function countAll(array $query = array()) |
||
28 | } |
||
29 | |||
30 | /** |
||
31 | * @param int $eventId |
||
32 | * @return GenericEntity |
||
33 | */ |
||
34 | public function findOne($eventId) |
||
39 | } |
||
40 | } |
||
41 |