1 | <?php |
||
11 | class PushServerDataCollector extends DataCollector |
||
12 | { |
||
13 | /** |
||
14 | * @var string |
||
15 | */ |
||
16 | const NAME = 'sandstone.push_server'; |
||
17 | |||
18 | /** |
||
19 | * @var PushServerInterface |
||
20 | */ |
||
21 | private $pushServer; |
||
22 | |||
23 | /** |
||
24 | * @param PushServerInterface $pushServer |
||
25 | */ |
||
26 | public function __construct(PushServerInterface $pushServer) |
||
31 | |||
32 | /** |
||
33 | * {@InheritDoc} |
||
34 | */ |
||
35 | public function collect(Request $request, Response $response, \Exception $exception = null) |
||
41 | |||
42 | /** |
||
43 | * Update data collector data with messages. |
||
44 | * |
||
45 | * @param string[] $messages |
||
46 | */ |
||
47 | private function updateMessages(array $messages) |
||
64 | |||
65 | /** |
||
66 | * @return array |
||
67 | */ |
||
68 | public function getData() |
||
72 | |||
73 | /** |
||
74 | * {@InheritDoc} |
||
75 | */ |
||
76 | public function getName() |
||
80 | |||
81 | /** |
||
82 | * {@InheritDoc} |
||
83 | */ |
||
84 | public function reset() |
||
92 | } |
||
93 |