Factory/JsFormValidatorFactory.php
protected function parseTransformers(array $transformers)
    {
        $result = array();
        foreach ($transformers as $trans) {
            $item = array();

            $reflect    = new \ReflectionClass($trans);
            $properties = $reflect->getProperties();
            foreach ($properties as $prop) {
                $item[$prop->getName()] = $this->getTransformerParam($trans, $prop->getName());
            }

            $item['name'] = get_class($trans);

            $result[] = $item;
        }
        return $result;
    }
protected function parseTransformers(array $transformers)
    {
        $result = array();
        foreach ($transformers as $trans) {
            $item = array();

            $reflect    = new \ReflectionClass($trans);
            $properties = $reflect->getProperties();
            foreach ($properties as $prop) {
                $item[$prop->getName()] = $this->getTransformerParam($trans, $prop->getName());
            }

            $item['name'] = get_class($trans);

            $result[] = $item;
        }
        return $result;
    }
protected function parseTransformers ( array $ transformers ) { $ result = array ( ) ; foreach ( $ transformers as $ trans ) { $ item = array ( ) ; $ reflect = new \ ReflectionClass ( $ trans ) ; $ properties = $ reflect -> getProperties ( ) ; foreach ( $ properties as $ prop ) { $ item [ $ prop -> getName ( ) ] = $ this -> getTransformerParam ( $ trans , $ prop -> getName ( ) ) ; } $ item [ 'name' ] = get_class ( $ trans ) ; $ result [ ] = $ item ; } return $ result ; }
Convert transformers objects to data arrays

@param array $transformers

@return array
Convert transformers objects to data arrays