| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 29 | public function __construct(int $line, int $amountOfIndentChars, string $indentationCharacter = ' ') |
||
| 30 | { |
||
| 31 | parent::__construct($line); |
||
| 32 | |||
| 33 | $this->amountOfIndentChars = $amountOfIndentChars; |
||
| 34 | |||
| 35 | if (!in_array($indentationCharacter, self::ALLOWED_INDENTATION_CHARS)) { |
||
| 36 | throw new InvalidIndentationCharacterException('Given indentation character ' . $indentationCharacter . ' is invalid!'); |
||
| 37 | } |
||
| 38 | |||
| 39 | $this->indentationCharacter = $indentationCharacter; |
||
| 40 | } |
||
| 58 |