| 1 | <?php |
||
| 11 | class HipChatAlerter implements AlerterInterface |
||
| 12 | { |
||
| 13 | protected $api; |
||
| 14 | protected $room; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Set the hipchat room api |
||
| 18 | * |
||
| 19 | * @param RoomAPI $api |
||
| 20 | */ |
||
| 21 | 6 | public function setRoomApi(RoomAPI $api) |
|
| 25 | |||
| 26 | /** |
||
| 27 | * Set the room name where to send notifications to |
||
| 28 | * |
||
| 29 | * @param string $name |
||
| 30 | */ |
||
| 31 | 6 | public function setRoom($name) |
|
| 35 | |||
| 36 | /** |
||
| 37 | * {@inheritdoc} |
||
| 38 | */ |
||
| 39 | 6 | public function alert(Alert $alert) |
|
| 71 | } |
||
| 72 |