/** * Get an array of object properties. * * @param object $value * @param \ReflectionClass $class * @param int $propertyFilter One of \ReflectionProperty constants * * @return array */ protected function getProperties($value, \ReflectionClass $class, $propertyFilter) { $info = $value->info(); $this->normalizeQueryArray($info); $this->normalizeFieldsArray($info); $this->unsetBoringFields($info); $this->unsetIgnoredFields($info); if ($value->dead()) { $info['dead'] = true; } return array_merge($info, parent::getProperties($value, $class, $propertyFilter)); }
/** * Get an array of exception object properties. * * @param object $value * @param \ReflectionClass $class * @param int $options One of Presenter constants * * @return array */ protected function getProperties($value, \ReflectionClass $class, $options = 0) { $props = array('<protected>message</protected>' => $value->getMessage(), '<protected>code</protected>' => $value->getCode(), '<protected>file</protected>' => $value->getFile(), '<protected>line</protected>' => $value->getLine(), '<private>previous</private>' => $value->getPrevious()); return array_merge(array_filter($props), parent::getProperties($value, $class, $options)); }
/** * Get an array of exception object properties. * * @param object $value * @param \ReflectionClass $class * @param int $options One of Presenter constants * * @return array */ protected function getProperties($value, \ReflectionClass $class, $options = 0) { $props = array('message' => $value->getMessage(), 'code' => $value->getCode(), 'file' => $value->getFile(), 'line' => $value->getLine(), 'previous' => $value->getPrevious()); return array_merge(array_filter($props), parent::getProperties($value, $class, $options)); }