1 | <?php |
||
25 | class LdapToolsDataCollector extends DataCollector |
||
26 | { |
||
27 | /** |
||
28 | * @var LdapManager |
||
29 | */ |
||
30 | protected $ldap; |
||
31 | |||
32 | /** |
||
33 | * @var LdapProfilerLogger |
||
34 | */ |
||
35 | protected $logger; |
||
36 | |||
37 | /** |
||
38 | * LdapToolsDataCollector constructor. |
||
39 | * @param LdapProfilerLogger $logger |
||
40 | * @param LdapManager|null $ldap |
||
41 | */ |
||
42 | public function __construct(LdapProfilerLogger $logger, LdapManager $ldap = null) |
||
48 | |||
49 | /** |
||
50 | * {@inheritdoc} |
||
51 | */ |
||
52 | public function getName() |
||
56 | |||
57 | /** |
||
58 | * {@inheritdoc} |
||
59 | */ |
||
60 | public function collect(Request $request, Response $response, \Exception $exception = null) |
||
74 | |||
75 | /** |
||
76 | * {@inheritdoc} |
||
77 | */ |
||
78 | public function reset() |
||
85 | |||
86 | /** |
||
87 | * @return array |
||
88 | */ |
||
89 | public function getOperationsByDomain() |
||
93 | |||
94 | /** |
||
95 | * @return int |
||
96 | */ |
||
97 | public function getTime() |
||
107 | |||
108 | /** |
||
109 | * @return array |
||
110 | */ |
||
111 | public function getOperations() |
||
115 | |||
116 | /** |
||
117 | * @return array |
||
118 | */ |
||
119 | public function getErrors() |
||
123 | |||
124 | /** |
||
125 | * @return string[] |
||
126 | */ |
||
127 | public function getDomains() |
||
131 | |||
132 | /** |
||
133 | * @param \LdapTools\Log\LogOperation[] ...$logs |
||
134 | * @return array |
||
135 | */ |
||
136 | protected function addOperationToData(LogOperation ...$logs) |
||
156 | } |
||
157 |
Methods can only be called on objects. This check looks for methods being called on variables that have been inferred to never be objects.