| Total Complexity | 2 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | class Notifications extends CloudApiBase |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * Returns details about a notification. |
||
| 17 | */ |
||
| 18 | public function get(string $notificationUuid): NotificationResponse |
||
| 19 | { |
||
| 20 | return new NotificationResponse( |
||
| 21 | $this->client->request( |
||
| 22 | 'get', |
||
| 23 | "/notifications/$notificationUuid" |
||
| 24 | ) |
||
| 25 | ); |
||
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Returns a list of notifications. |
||
| 30 | * |
||
| 31 | * @return NotificationsResponse<NotificationResponse> |
||
| 32 | */ |
||
| 33 | public function getAll(string $applicationUuid): NotificationsResponse |
||
| 39 | ) |
||
| 40 | ); |
||
| 43 |