1 | <?php |
||
17 | class FirephpCollector implements CollectorInterface |
||
18 | { |
||
19 | const NAME = 'mpa_firephp_wrapper_collector'; |
||
20 | const PRIORITY = 150; |
||
21 | |||
22 | protected $firephp; |
||
23 | protected $howManyLogged = 0; |
||
24 | |||
25 | /** |
||
26 | * @param FirephpWrapper $firephp |
||
27 | */ |
||
28 | 3 | public function __construct(FirephpWrapper $firephp) |
|
32 | |||
33 | /** |
||
34 | * {@inheritDoc} |
||
35 | */ |
||
36 | 1 | public function getName() |
|
40 | |||
41 | /** |
||
42 | * {@inheritDoc} |
||
43 | */ |
||
44 | 1 | public function getPriority() |
|
48 | |||
49 | /** |
||
50 | * {@inheritDoc} |
||
51 | */ |
||
52 | 1 | public function collect(MvcEvent $mvcEvent) |
|
53 | { |
||
54 | 1 | if (null !== $this->firephp->howManyLogged()) { |
|
55 | 1 | $this->howManyLogged = $this->firephp->howManyLogged(); |
|
56 | } |
||
57 | 1 | } |
|
58 | |||
59 | /** |
||
60 | * @return int |
||
61 | */ |
||
62 | 2 | public function getHowManyLogged() |
|
66 | } |
||
67 |