src/Jms/YamlValidatorConverter.php
protected function &handleClassExtension(&$class, &$data, Type $type, $parentName)
    {
        $property = parent::handleClassExtension($class, $data, $type, $parentName);

        $rules = $this->loadValidatorType($property, $type, false );

        $property['validation'] = array_merge(!empty($property['validation']) ? $property['validation'] : [], $rules);
        return $property;
    }
protected function &handleClassExtension(&$class, &$data, Type $type, $parentName)
    {
        $property = parent::handleClassExtension($class, $data, $type, $parentName);

        $rules = $this->loadValidatorType($property, $type, false );

        $property['validation'] = array_merge(!empty($property['validation']) ? $property['validation'] : [], $rules);
        return $property;
    }
protected function & handleClassExtension ( & $ class , & $ data , Type $ type , $ parentName ) { $ property = parent :: handleClassExtension ( $ class , $ data , $ type , $ parentName ) ; $ rules = $ this -> loadValidatorType ( $ property , $ type , false ) ; $ property [ 'validation' ] = array_merge ( ! empty ( $ property [ 'validation' ] ) ? $ property [ 'validation' ] : [ ] , $ rules ) ; return $ property ; }
Responsible for handler all properties from extension types

@param PHPClass $class
@param array $data
@param Type $type
@param string $parentName
Responsible for handler all properties from extension types