1 | <?php |
||
11 | class ClassNameFormatter implements Formatter |
||
12 | { |
||
13 | /** |
||
14 | * @var string |
||
15 | */ |
||
16 | private $commandReceivedLevel; |
||
17 | |||
18 | /** |
||
19 | * @var string |
||
20 | */ |
||
21 | private $commandSucceededLevel; |
||
22 | |||
23 | /** |
||
24 | * @var string |
||
25 | */ |
||
26 | private $commandFailedLevel; |
||
27 | |||
28 | /** |
||
29 | * @param string $commandReceivedLevel |
||
30 | * @param string $commandSucceededLevel |
||
31 | * @param string $commandFailedLevel |
||
32 | */ |
||
33 | public function __construct( |
||
42 | |||
43 | /** |
||
44 | * {@inheritDoc} |
||
45 | */ |
||
46 | public function logCommandReceived(LoggerInterface $logger, $command) |
||
50 | |||
51 | /** |
||
52 | * {@inheritDoc} |
||
53 | */ |
||
54 | public function logCommandSucceeded(LoggerInterface $logger, $command, $returnValue) |
||
58 | |||
59 | /** |
||
60 | * {@inheritDoc} |
||
61 | */ |
||
62 | public function logCommandFailed(LoggerInterface $logger, $command, Exception $e) |
||
70 | } |
||
71 |