1 | <?php |
||
24 | abstract class AbstractPusher implements PusherInterface |
||
25 | { |
||
26 | /** |
||
27 | * $client. |
||
28 | * |
||
29 | * @var Client |
||
30 | */ |
||
31 | protected $client; |
||
32 | |||
33 | /** |
||
34 | * $options. |
||
35 | * |
||
36 | * @var array |
||
37 | */ |
||
38 | protected $options; |
||
39 | |||
40 | /** |
||
41 | * Constructor. |
||
42 | * |
||
43 | * @param array $options |
||
44 | */ |
||
45 | public function __construct(array $options) |
||
49 | |||
50 | /** |
||
51 | * getDefaultFailedIncidentMessage. |
||
52 | * |
||
53 | * @return string Default message used to create a incident when a failure as occured |
||
54 | */ |
||
55 | public function getDefaultFailedIncidentMessage() |
||
59 | |||
60 | /** |
||
61 | * getDefaultResolvedIncidentMessage. |
||
62 | * |
||
63 | * @return string Default message used to create a incident when a service is resolved as occured |
||
64 | */ |
||
65 | public function getDefaultResolvedIncidentMessage() |
||
69 | |||
70 | /** |
||
71 | * getClient. |
||
72 | * |
||
73 | * @return Client |
||
74 | */ |
||
75 | public function getClient() |
||
85 | |||
86 | /** |
||
87 | * push. |
||
88 | * |
||
89 | * @param Result $result |
||
90 | * |
||
91 | * @return mixed |
||
92 | */ |
||
93 | abstract public function push(Result $result); |
||
94 | } |
||
95 |