Total Complexity | 2 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | class LogOperationVisitor implements OperationVisitorInterface |
||
16 | { |
||
17 | /** @var LoggerInterface */ |
||
18 | private $logger; |
||
19 | |||
20 | /** @var OperationFormatterInterface */ |
||
21 | private $formatter; |
||
22 | |||
23 | /** @var string */ |
||
24 | private $logLevel; |
||
25 | |||
26 | /** |
||
27 | * Constructor. |
||
28 | * |
||
29 | * @param LoggerInterface $logger |
||
30 | * @param OperationFormatterInterface $formatter |
||
31 | * @param string $logLevel |
||
32 | */ |
||
33 | 1 | public function __construct( |
|
41 | 1 | } |
|
42 | |||
43 | /** |
||
44 | * Visit the given operation. |
||
45 | * |
||
46 | * @param OperationInterface $operation |
||
47 | * |
||
48 | * @return void |
||
49 | */ |
||
50 | 1 | public function __invoke(OperationInterface $operation): void |
|
58 |