| Conditions | 4 | 
| Paths | 3 | 
| Total Lines | 17 | 
| Code Lines | 9 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 28 | public function jsonSerialize() | ||
| 29 |     { | ||
| 30 | $properties = new \stdClass(); | ||
| 31 | |||
| 32 |         foreach ($this->properties as $property) { | ||
| 33 | $name = $property->getName(); | ||
| 34 | $value = $property->getValue(); | ||
| 35 | |||
| 36 |             if (empty($name) || empty($value)) { | ||
| 37 | continue; | ||
| 38 | } | ||
| 39 | |||
| 40 | $properties->$name = $value; | ||
| 41 | } | ||
| 42 | |||
| 43 | return json_encode($properties); | ||
| 44 | } | ||
| 45 | |||
| 54 |