src/Articus/DataTransfer/Service.php
public function getValidator(Metadata $metadata)
	{
		if (!isset($this->validators[$metadata->className][$metadata->subset]))
		{
			$validator = new Validator();
			$validator
				->setValidatorPluginManager($this->validatorPluginManager)
				->setMetadata($metadata)
			;
			$this->validators[$metadata->className][$metadata->subset] = $validator;
		}
		return $this->validators[$metadata->className][$metadata->subset];
	}
public function getValidator(Metadata $metadata)
	{
		if (!isset($this->validators[$metadata->className][$metadata->subset]))
		{
			$validator = new Validator();
			$validator
				->setValidatorPluginManager($this->validatorPluginManager)
				->setMetadata($metadata)
			;
			$this->validators[$metadata->className][$metadata->subset] = $validator;
		}
		return $this->validators[$metadata->className][$metadata->subset];
	}
public function getValidator ( Metadata $ metadata ) { if ( ! isset ( $ this -> validators [ $ metadata -> className ] [ $ metadata -> subset ] ) ) { $ validator = new Validator ( ) ; $ validator -> setValidatorPluginManager ( $ this -> validatorPluginManager ) -> setMetadata ( $ metadata ) ; $ this -> validators [ $ metadata -> className ] [ $ metadata -> subset ] = $ validator ; } return $ this -> validators [ $ metadata -> className ] [ $ metadata -> subset ] ; }
Returns validator required by metadata
@param Metadata $metadata
@return Validator
Returns validator required by metadata