1 | <?php |
||
22 | class ExternalEvents extends AbstractApi |
||
23 | { |
||
24 | /** |
||
25 | * @param $eventId |
||
26 | * |
||
27 | * @return ResponseInterface |
||
28 | */ |
||
29 | public function create($eventId) |
||
33 | |||
34 | /** |
||
35 | * @param $eventId |
||
36 | * |
||
37 | * @return Promise |
||
38 | */ |
||
39 | public function asyncCreate($eventId) |
||
43 | |||
44 | /** |
||
45 | * @param int $eventId |
||
46 | * @param array $data |
||
47 | * |
||
48 | * @return \Psr\Http\Message\RequestInterface |
||
49 | */ |
||
50 | private function createCreateRequest($eventId, $data = array()) |
||
54 | |||
55 | /** |
||
56 | * @param int $eventId |
||
57 | * @param array $data |
||
58 | * |
||
59 | * @return ResponseInterface |
||
60 | */ |
||
61 | public function trigger($eventId, $data = array()) |
||
65 | |||
66 | /** |
||
67 | * @param int $eventId |
||
68 | * @param array $data |
||
69 | * |
||
70 | * @return Promise |
||
71 | */ |
||
72 | public function asyncTrigger($eventId, $data = array()) |
||
76 | |||
77 | /** |
||
78 | * @param int $eventId |
||
79 | * @param array $data |
||
80 | * |
||
81 | * @return \Psr\Http\Message\RequestInterface |
||
82 | */ |
||
83 | private function createTriggerRequest($eventId, $data = array()) |
||
87 | } |
||
88 |