| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | public function __construct($channel, $logDir, RequestInterface $requestInterface) |
||
| 14 | { |
||
| 15 | $this->channel = $channel; |
||
| 16 | |||
| 17 | if (!is_readable($logDir)) { |
||
| 18 | throw new ApplicationException('Log dir not readable'); |
||
| 19 | } |
||
| 20 | if (!is_writable($logDir)) { |
||
| 21 | throw new ApplicationException('Log dir not writeable'); |
||
| 22 | } |
||
| 23 | $this->logPath = sprintf('%s%s.log', $logDir, $this->channel); |
||
| 24 | |||
| 25 | $this->requestInterface = $requestInterface; |
||
| 26 | } |
||
| 49 |