| Conditions | 3 |
| Paths | 2 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 50 | 1 | public function __toString(): string |
|
| 51 | { |
||
| 52 | 1 | $return = ''; |
|
| 53 | |||
| 54 | 1 | if (is_array($this->getValue())) { |
|
| 55 | 1 | foreach ($this->getValue() as $key => $value) { |
|
| 56 | 1 | $return .= $this->getName() . '[' . $key . '] = ' . $this->escape($value) . PHP_EOL; |
|
| 57 | } |
||
| 58 | } else { |
||
| 59 | 1 | $return = $this->getName() . ' = ' . $this->value . PHP_EOL; |
|
| 60 | } |
||
| 61 | |||
| 62 | 1 | return $return; |
|
| 63 | } |
||
| 64 | |||
| 70 |