| 1 | <?php namespace Indatus\Dispatcher; |
||
| 11 | class Debugger |
||
| 12 | { |
||
| 13 | /** @var \Symfony\Component\Console\Output\OutputInterface */ |
||
| 14 | protected $output; |
||
| 15 | |||
| 16 | /** @var \Indatus\Dispatcher\OptionReader */ |
||
| 17 | protected $optionReader; |
||
| 18 | |||
| 19 | 4 | public function __construct(OptionReader $optionReader, OutputInterface $output) |
|
| 24 | |||
| 25 | /** |
||
| 26 | * Indicate why a command was not run |
||
| 27 | * |
||
| 28 | * @param ScheduledCommandInterface $command |
||
| 29 | * @param $reason |
||
| 30 | */ |
||
| 31 | 1 | public function commandNotRun(ScheduledCommandInterface $command, $reason) |
|
| 37 | |||
| 38 | /** |
||
| 39 | * Indicate why a command has run |
||
| 40 | * |
||
| 41 | * @param ScheduledCommandInterface $command |
||
| 42 | * @param $runCommand |
||
| 43 | */ |
||
| 44 | 1 | public function commandRun(ScheduledCommandInterface $command, $runCommand) |
|
| 50 | |||
| 51 | /** |
||
| 52 | * Log plain text |
||
| 53 | * |
||
| 54 | * @param $message |
||
| 55 | */ |
||
| 56 | 1 | public function log($message) |
|
| 62 | } |
||
| 63 |