| Conditions | 4 |
| Paths | 3 |
| Total Lines | 17 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 51 | protected function getContextArray(AuditLog $event) |
||
| 52 | { |
||
| 53 | $accessor = PropertyAccess::createPropertyAccessor(); |
||
| 54 | |||
| 55 | $refObject = new \ReflectionObject($event); |
||
| 56 | |||
| 57 | $arr = array(); |
||
| 58 | |||
| 59 | foreach ($this->getAllProperties($refObject) as $property) { |
||
| 60 | if (!$accessor->isReadable($event, $property->getName()) || in_array($property->getName(), self::$ignoreProperties)) { |
||
| 61 | continue; |
||
| 62 | } |
||
| 63 | |||
| 64 | $arr[$property->getName()] = $accessor->getValue($event, $property->getName()); |
||
| 65 | } |
||
| 66 | |||
| 67 | return $arr; |
||
| 68 | } |
||
| 70 |