Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | public function __toString(): string |
||
24 | { |
||
25 | $arrows = []; |
||
26 | |||
27 | foreach ($this->arrows as $arrow) { |
||
28 | $arrows[] = \sprintf( |
||
29 | self::BLOCK, |
||
30 | $arrow[self::PARENT_NAME], |
||
31 | $arrow[self::NODE], |
||
32 | $arrow[self::CHILDREN_NAME], |
||
33 | $arrow[self::RELATION_NAME] |
||
34 | ); |
||
35 | } |
||
36 | |||
37 | return \implode("\n", $arrows); |
||
38 | } |
||
40 |