Conditions | 2 |
Paths | 2 |
Total Lines | 18 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
50 | public function __construct( |
||
51 | $type, |
||
52 | $iteratorCharacter = '#', |
||
53 | $tab = null, |
||
54 | $keyToValueCharacter = '|', |
||
55 | Border $border = null |
||
56 | ) |
||
57 | { |
||
58 | 1 | if (!in_array($type, $this->getAllowedTypes())) { |
|
59 | 1 | throw new Exception("Unknown structure type $type"); |
|
60 | } |
||
61 | |||
62 | 1 | $this->type = $type; |
|
63 | 1 | $this->iteratorCharacter = $iteratorCharacter; |
|
64 | 1 | $this->tab = $tab; |
|
65 | 1 | $this->keyToValueCharacter = $keyToValueCharacter; |
|
66 | 1 | $this->border = $border; |
|
67 | 1 | } |
|
68 | |||
122 |