protected function extractObjectData($value, $ref, $properties)
    {
        $data = array();
        foreach ($properties as $property) {
            try {
                $propRef = $ref->getProperty($property);
                $propRef->setAccessible(true);
                $data[$property] = $propRef->getValue($value);
            } catch (ReflectionException $e) {
                $data[$property] = $value->$property;
            }
        }
        return $data;
    }
protected function extractObjectData($value, $ref, $properties)
    {
        $data = array();
        foreach ($properties as $property) {
            try {
                $propRef = $ref->getProperty($property);
                $propRef->setAccessible(true);
                $data[$property] = $propRef->getValue($value);
            } catch (ReflectionException $e) {
                $data[$property] = $value->$property;
            }
        }
        return $data;
    }
protected function extractObjectData ( $ value , $ ref , $ properties ) { $ data = array ( ) ; foreach ( $ properties as $ property ) { try { $ propRef = $ ref -> getProperty ( $ property ) ; $ propRef -> setAccessible ( true ) ; $ data [ $ property ] = $ propRef -> getValue ( $ value ) ; } catch ( ReflectionException $ e ) { $ data [ $ property ] = $ value -> $ property ; } } return $ data ; }
Extract the object data

@param  object          $value
@param  ReflectionClass $ref
@param  array           $properties
@return array
Extract the object data