1 | <?php |
||
23 | class LdapLogger implements LdapLoggerInterface |
||
24 | { |
||
25 | /** |
||
26 | * @var null|LoggerInterface |
||
27 | */ |
||
28 | protected $logger; |
||
29 | |||
30 | /** |
||
31 | * @var null|Stopwatch |
||
32 | */ |
||
33 | protected $stopwatch; |
||
34 | |||
35 | /** |
||
36 | * @param LoggerInterface|null $logger |
||
37 | * @param Stopwatch|null $stopwatch |
||
38 | */ |
||
39 | public function __construct(LoggerInterface $logger = null, Stopwatch $stopwatch = null) |
||
44 | |||
45 | /** |
||
46 | * {@inheritdoc} |
||
47 | */ |
||
48 | public function start(LogOperation $log) |
||
57 | |||
58 | /** |
||
59 | * {@inheritdoc} |
||
60 | */ |
||
61 | public function end(LogOperation $log) |
||
70 | |||
71 | /** |
||
72 | * Logs a message. |
||
73 | * |
||
74 | * @param LogOperation $log |
||
75 | */ |
||
76 | protected function log(LogOperation $log) |
||
86 | |||
87 | /** |
||
88 | * @param LogOperation $log |
||
89 | * @return string |
||
90 | */ |
||
91 | protected function getLogMessage(LogOperation $log) |
||
113 | } |
||
114 |