| Conditions | 3 |
| Paths | 4 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 3.009 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 59 | 8 | public function __construct(FileInfo $file, FileTool $tool, $text, $line, $level = null) { |
|
| 60 | |||
| 61 | 8 | $level = ($level !== null) ? $level : self::LEVEL_ERROR; |
|
| 62 | |||
| 63 | 8 | if (!isset(self::$levelMap[$level])) { |
|
| 64 | throw new \InvalidArgumentException('Invalid level'); |
||
| 65 | } |
||
| 66 | |||
| 67 | 8 | $this->file = $file; |
|
| 68 | 8 | $this->text = $text; |
|
| 69 | 8 | $this->level = $level; |
|
| 70 | 8 | $this->tool = $tool; |
|
| 71 | 8 | $this->line = $line; |
|
| 72 | 8 | } |
|
| 73 | |||
| 130 | } |