1 | <?php |
||
21 | class LdapProfilerLogger implements LdapLoggerInterface |
||
22 | { |
||
23 | /** |
||
24 | * @var LogOperation[] |
||
25 | */ |
||
26 | protected $opsByDomain = []; |
||
27 | |||
28 | /** |
||
29 | * @var LogOperation[] |
||
30 | */ |
||
31 | protected $allOperations = []; |
||
32 | |||
33 | /** |
||
34 | * @var LogOperation[] |
||
35 | */ |
||
36 | protected $errors = []; |
||
37 | |||
38 | /** |
||
39 | * {@inheritdoc} |
||
40 | */ |
||
41 | public function start(LogOperation $operation) |
||
49 | |||
50 | /** |
||
51 | * {@inheritdoc} |
||
52 | */ |
||
53 | public function end(LogOperation $operation) |
||
59 | |||
60 | /** |
||
61 | * Get all of the operations recorded by the profiler. Or get the operations for a specific domain. |
||
62 | * |
||
63 | * @param null|string $domain |
||
64 | * @return LogOperation[] |
||
65 | */ |
||
66 | public function getOperations($domain = null) |
||
76 | |||
77 | /** |
||
78 | * Get all the operations that had errors. |
||
79 | * |
||
80 | * @return LogOperation[] |
||
81 | */ |
||
82 | public function getErrors() |
||
86 | } |
||
87 |