| Total Complexity | 4 |
| Total Lines | 44 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | class Debug extends Base |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @var General |
||
| 23 | */ |
||
| 24 | private $config; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Debug constructor. |
||
| 28 | * |
||
| 29 | * @param DriverInterface $filesystem |
||
| 30 | * @param General $config |
||
| 31 | * @param null $filePath |
||
|
|
|||
| 32 | * @param string $fileName |
||
| 33 | * |
||
| 34 | * @throws \Exception |
||
| 35 | */ |
||
| 36 | public function __construct( |
||
| 37 | DriverInterface $filesystem, |
||
| 38 | General $config, |
||
| 39 | $filePath = null, |
||
| 40 | $fileName = '/var/log/invisible_captcha.log' |
||
| 41 | ) { |
||
| 42 | parent::__construct($filesystem, $filePath, $fileName); |
||
| 43 | |||
| 44 | $this->config = $config; |
||
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @inheritDoc |
||
| 49 | * @throws \Magento\Framework\Exception\FileSystemException |
||
| 50 | */ |
||
| 51 | public function write(array $record) |
||
| 63 | } |
||
| 64 | } |