| Total Complexity | 2 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 26 | class FileLogger implements ReportableInterface |
||
| 27 | { |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @var \Quantum\Libraries\Storage\FileSystem |
||
| 31 | */ |
||
| 32 | private $fs; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @var string |
||
| 36 | */ |
||
| 37 | private $logFile; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * FileLogger constructor. |
||
| 41 | * @param string $logFile |
||
| 42 | * @throws \Quantum\Exceptions\DiException |
||
| 43 | * @throws \ReflectionException |
||
| 44 | */ |
||
| 45 | public function __construct(string $logFile) |
||
| 46 | { |
||
| 47 | $this->logFile = $logFile; |
||
| 48 | $this->fs = Di::get(FileSystem::class); |
||
| 49 | } |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @inheritDoc |
||
| 53 | */ |
||
| 54 | public function report($level, $message, array $context = []) |
||
| 57 | } |
||
| 58 | |||
| 59 | } |