| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | private function jsonSerializeAsSimpleOrExtended(string $property = 'value') |
||
| 8 | { |
||
| 9 | $options = parent::jsonSerialize(); |
||
| 10 | |||
| 11 | if ($options) { |
||
| 12 | return [ static::NAME => [ $this->field => [ $property => $this->$property ] + $options ] ]; |
||
|
|
|||
| 13 | } |
||
| 14 | |||
| 15 | return [ static::NAME => [ $this->field => $this->$property ] ]; |
||
| 16 | } |
||
| 18 |