1 | <?php |
||
16 | class EventClient extends AbstractClient |
||
17 | { |
||
18 | /** |
||
19 | * Make HTTP POST Request to the Event api. |
||
20 | * |
||
21 | * @param PagerDutyEntityInterface $pagerDutyEntity |
||
22 | * |
||
23 | * @return stdClass |
||
24 | * |
||
25 | * @throws EventClientTransportException |
||
26 | * @throws ResponseDataValidationException |
||
27 | */ |
||
28 | 4 | public function post(PagerDutyEntityInterface $pagerDutyEntity) |
|
48 | |||
49 | /** |
||
50 | * Get Full resource Url. |
||
51 | * |
||
52 | * @param PagerDutyEntityInterface $pagerDutyEntity |
||
53 | * |
||
54 | * @return string |
||
55 | */ |
||
56 | 4 | private function getResourceUrl(PagerDutyEntityInterface $pagerDutyEntity) |
|
64 | |||
65 | /** |
||
66 | * Perform response and gets it date. |
||
67 | * |
||
68 | * @param mixed $response |
||
69 | * |
||
70 | * @return stdClass |
||
71 | * |
||
72 | * @throws EventValidationResponseException |
||
73 | */ |
||
74 | 3 | private function performResponse($response) |
|
84 | } |
||
85 |