| Conditions | 4 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 20 |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | public function __construct(string $type, ?string $domain = null) |
||
| 14 | { |
||
| 15 | $this->parser = new LogParser(); |
||
| 16 | $this->parser->setFormat(class_exists($type) ? $type::FORMAT : $type); |
||
| 17 | if ($domain !== null) { |
||
| 18 | $this->parser->setDomain($domain); |
||
| 19 | } |
||
| 20 | $this->parser->setType(class_exists($type) ? $type : LogLine::class); |
||
| 21 | } |
||
| 71 |