ValidatorBuilderInterface::addObjectInitializer()

ValidatorBuilderInterface addObjectInitializer(ObjectInitializerInterface $initializer) Adds an object initializer to the validator. Parameters ObjectInitializerInterface $initializer The initializer Return Value ValidatorBuilderInterface The builder object

ValidatorBuilderInterface::addYamlMapping()

ValidatorBuilderInterface addYamlMapping(string $path) Adds a YAML constraint mapping file to the validator. Parameters string $path The path to the mapping file Return Value ValidatorBuilderInterface The builder object

ValidatorBuilderInterface::addXmlMapping()

ValidatorBuilderInterface addXmlMapping(string $path) Adds an XML constraint mapping file to the validator. Parameters string $path The path to the mapping file Return Value ValidatorBuilderInterface The builder object

ValidatorBuilderInterface::addObjectInitializers()

ValidatorBuilderInterface addObjectInitializers(array $initializers) Adds a list of object initializers to the validator. Parameters array $initializers The initializer Return Value ValidatorBuilderInterface The builder object

ValidatorBuilderInterface::addXmlMappings()

ValidatorBuilderInterface addXmlMappings(array $paths) Adds a list of XML constraint mapping files to the validator. Parameters array $paths The paths to the mapping files Return Value ValidatorBuilderInterface The builder object

ValidatorBuilderInterface::addMethodMappings()

ValidatorBuilderInterface addMethodMappings(array $methodNames) Enables constraint mapping using the given static methods. Parameters array $methodNames The names of the methods Return Value ValidatorBuilderInterface The builder object

ValidatorBuilderInterface

interface ValidatorBuilderInterface A configurable builder for ValidatorInterface objects. Methods ValidatorBuilderInterface addObjectInitializer(ObjectInitializerInterface $initializer) Adds an object initializer to the validator. ValidatorBuilderInterface addObjectInitializers(array $initializers) Adds a list of object initializers to the validator. ValidatorBuilderInterface addXmlMapping(string $path) Adds an XML constraint mapping file to the validator. ValidatorBuilderI

ValidatorBuilderInterface::addMethodMapping()

ValidatorBuilderInterface addMethodMapping(string $methodName) Enables constraint mapping using the given static method. Parameters string $methodName The name of the method Return Value ValidatorBuilderInterface The builder object

ValidatorBuilder::setTranslator()

ValidatorBuilderInterface setTranslator(TranslatorInterface $translator) Sets the translator used for translating violation messages. Parameters TranslatorInterface $translator The translator instance Return Value ValidatorBuilderInterface The builder object

ValidatorBuilder::setTranslationDomain()

ValidatorBuilderInterface setTranslationDomain(string $translationDomain) Sets the default translation domain of violation messages. The same message can have different translations in different domains. Pass the domain that is used for violation messages by default to this method. Parameters string $translationDomain The translation domain of the violation messages Return Value ValidatorBuilderInterface The builder object