| Conditions | 8 |
| Paths | 8 |
| Total Lines | 27 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 2 |
| 1 | <?php |
||
| 30 | public function __debugInfo() |
||
| 31 | { |
||
| 32 | $result = []; |
||
| 33 | $reflection = new \ReflectionObject($this); |
||
| 34 | $registry = Registry::get($this); |
||
| 35 | |||
| 36 | foreach ($reflection->getProperties() as $property) { |
||
| 37 | $name = $property->name; |
||
| 38 | if ($property->isStatic()) { |
||
| 39 | continue; |
||
| 40 | } |
||
| 41 | |||
| 42 | if ($property->isPublic()) { |
||
| 43 | $result[$name] = $this->$name; |
||
| 44 | } |
||
| 45 | |||
| 46 | if ($property->isProtected() || $property->isPrivate()) { |
||
| 47 | $property->setAccessible(true); |
||
| 48 | |||
| 49 | if ($registry->has($name) && $registry->isReadable($name)) { |
||
| 50 | $result[$name] = $property->getValue($this); |
||
| 51 | } |
||
| 52 | } |
||
| 53 | } |
||
| 54 | |||
| 55 | return $result; |
||
| 56 | } |
||
| 57 | } |
||
| 58 |