src/Entity/Validation/EntityDataValidatorFactory.php
public function buildEntityDataValidator(): EntityDataValidatorInterface
    {
        $builder = Validation::createValidatorBuilder();
        $builder->addMethodMapping(self::METHOD_LOAD_VALIDATOR_META_DATA);
        $builder->setMetadataCache($this->doctrineCache);
        $builder->setConstraintValidatorFactory($this->factory);
        $builder->addObjectInitializer($this->initialiser);
        $validator = $builder->getValidator();

        return new EntityDataValidator($validator);
    }
public function buildEntityDataValidator(): EntityDataValidatorInterface
    {
        $builder = Validation::createValidatorBuilder();
        $builder->addMethodMapping(self::METHOD_LOAD_VALIDATOR_META_DATA);
        $builder->setMetadataCache($this->doctrineCache);
        $builder->setConstraintValidatorFactory($this->factory);
        $builder->addObjectInitializer($this->initialiser);
        $validator = $builder->getValidator();

        return new EntityDataValidator($validator);
    }
public function buildEntityDataValidator ( ) : EntityDataValidatorInterface { $ builder = Validation :: createValidatorBuilder ( ) ; $ builder -> addMethodMapping ( self :: METHOD_LOAD_VALIDATOR_META_DATA ) ; $ builder -> setMetadataCache ( $ this -> doctrineCache ) ; $ builder -> setConstraintValidatorFactory ( $ this -> factory ) ; $ builder -> addObjectInitializer ( $ this -> initialiser ) ; $ validator = $ builder -> getValidator ( ) ; return new EntityDataValidator ( $ validator ) ; }
Build an EntityDataValidatorInterface

@return EntityDataValidatorInterface
@SuppressWarnings(PHPMD.StaticAccess)
Build an EntityDataValidatorInterface