| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 51 | public function __sleep() |
||
| 52 | { |
||
| 53 | $publicProperties = (new ReflectionObject($this))->getProperties(ReflectionProperty::IS_PUBLIC); |
||
| 54 | |||
| 55 | $publicPropertyNames = array_map(function(ReflectionProperty $property) { |
||
| 56 | return $property->getName(); |
||
| 57 | }, $publicProperties); |
||
| 58 | |||
| 59 | return array_diff($publicPropertyNames, ['ohDear', 'attributes']); |
||
| 60 | } |
||
| 61 | } |
||
| 62 |