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