| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 41 | public function __construct($type, $lineCharacter = '-', $columnCharacter = '|', $crossCharacter = '+') |
||
| 42 | { |
||
| 43 | 1 | if (!in_array($type, $this->getAllowedTypes())) { |
|
| 44 | 1 | throw new Exception("Unknown border type $type"); |
|
| 45 | } |
||
| 46 | |||
| 47 | 1 | $this->type = $type; |
|
| 48 | 1 | $this->lineCharacter = $lineCharacter; |
|
| 49 | 1 | $this->columnCharacter = $columnCharacter; |
|
| 50 | 1 | $this->crossCharacter = $crossCharacter; |
|
| 51 | 1 | } |
|
| 52 | |||
| 98 |