public function extract($object)
    {
        $result = array();
        foreach (self::getReflProperties($object) as $property) {
            $propertyName = $property->getName();
            if (!$this->filterComposite->filter($propertyName)) {
                continue;
            }
            $getter = 'get' . ucfirst($propertyName);
            $value = method_exists($object, $getter)
                   ? $object->$getter()
                   : $property->getValue($object);

            $result[$propertyName] = $this->extractValue($propertyName, $value);
        }

        return $result;
    }
public function extract($object)
    {
        $result = array();
        foreach (self::getReflProperties($object) as $property) {
            $propertyName = $property->getName();
            if (!$this->filterComposite->filter($propertyName)) {
                continue;
            }
            $getter = 'get' . ucfirst($propertyName);
            $value = method_exists($object, $getter)
                   ? $object->$getter()
                   : $property->getValue($object);

            $result[$propertyName] = $this->extractValue($propertyName, $value);
        }

        return $result;
    }
public function extract ( $ object ) { $ result = array ( ) ; foreach ( self :: getReflProperties ( $ object ) as $ property ) { $ propertyName = $ property -> getName ( ) ; if ( ! $ this -> filterComposite -> filter ( $ propertyName ) ) { continue ; } $ getter = 'get' . ucfirst ( $ propertyName ) ; $ value = method_exists ( $ object , $ getter ) ? $ object -> $ getter ( ) : $ property -> getValue ( $ object ) ; $ result [ $ propertyName ] = $ this -> extractValue ( $ propertyName , $ value ) ; } return $ result ; }
Extract values from an object

@param  object $object
@return array
Extract values from an object