Total Complexity | 2 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class FrameConfig implements FrameConfigInterface |
||
8 | { |
||
9 | private Symbol $space; |
||
10 | private Symbol $cornerLeftTop; |
||
11 | private Symbol $cornerRightTop; |
||
12 | private Symbol $cornerMiddleTop; |
||
13 | private Symbol $cornerLeftBottom; |
||
14 | private Symbol $cornerRightBottom; |
||
15 | private Symbol $cornerMiddleBottom; |
||
16 | private Symbol $lineVertical; |
||
17 | private Symbol $lineHorizontal; |
||
18 | private Symbol $cornerLeftMiddle; |
||
19 | private Symbol $cornerRightMiddle; |
||
20 | private Symbol $cornerMiddleMiddle; |
||
21 | |||
22 | |||
23 | 1 | public function __construct(private Shell $shell) |
|
24 | { |
||
25 | 1 | $this->space = new Symbol("."); |
|
26 | 1 | $this->lineVertical = new Symbol("|"); |
|
27 | 1 | $this->lineHorizontal = new Symbol("-"); |
|
28 | 1 | $this->cornerLeftMiddle = new Symbol("+"); |
|
29 | 1 | $this->cornerRightMiddle = new Symbol("+"); |
|
30 | 1 | $this->cornerMiddleMiddle = new Symbol("+"); |
|
31 | |||
32 | 1 | $this->cornerLeftTop = new Symbol("+"); |
|
33 | 1 | $this->cornerRightTop = new Symbol("+"); |
|
34 | 1 | $this->cornerMiddleTop = new Symbol("+"); |
|
35 | 1 | $this->cornerLeftBottom = new Symbol("+"); |
|
36 | 1 | $this->cornerRightBottom = new Symbol("+"); |
|
37 | 1 | $this->cornerMiddleBottom = new Symbol("+"); |
|
38 | } |
||
39 | |||
40 | |||
41 | 1 | public function __get(string $name): Symbol |
|
44 | } |
||
45 | } |