Conditions | 3 |
Paths | 2 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
69 | 1 | public function __toString(): string |
|
70 | { |
||
71 | 1 | $return = ''; |
|
72 | |||
73 | 1 | if (is_array($this->getValue())) { |
|
74 | 1 | foreach ($this->getValue() as $key => $value) { |
|
75 | 1 | $return .= $this->getName() . '[' . $key . '] = ' . $this->escape($value) . PHP_EOL; |
|
76 | } |
||
77 | } else { |
||
78 | 1 | $return = $this->getName() . ' = ' . $this->value . PHP_EOL; |
|
79 | } |
||
80 | |||
81 | 1 | return $return; |
|
82 | } |
||
83 | } |
||
84 |