| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 46 | public function __sleep() |
||
| 47 | { |
||
| 48 | $publicProperties = (new ReflectionObject($this))->getProperties(ReflectionProperty::IS_PUBLIC); |
||
| 49 | |||
| 50 | $publicPropertyNames = array_map(function (ReflectionProperty $property) { |
||
| 51 | return $property->getName(); |
||
| 52 | }, $publicProperties); |
||
| 53 | |||
| 54 | return array_diff($publicPropertyNames, ['ohDear', 'attributes']); |
||
| 55 | } |
||
| 57 |