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