| Conditions | 3 |
| Paths | 3 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | public function __toString(): string |
||
| 27 | { |
||
| 28 | if (is_scalar($this->value)) { |
||
| 29 | return sprintf( |
||
| 30 | '(%s) %s', |
||
| 31 | gettype($this->value), |
||
| 32 | (string) $this->value |
||
| 33 | ); |
||
| 34 | } |
||
| 35 | |||
| 36 | if (is_object($this->value)) { |
||
| 37 | return '(object) ' . get_class($this->value); |
||
| 38 | } |
||
| 39 | |||
| 40 | return '(' . gettype($this->value) . ')'; |
||
| 41 | } |
||
| 75 |