Enables constraint mapping using the given static methods.
array $methodNames The names of the methods.:
ValidatorBuilderInterface The builder object.
Overrides ValidatorBuilderInterface::addMethodMappings
public function addMethodMappings(array $methodNames) {
if (null !== $this->metadataFactory) {
throw new ValidatorException('You cannot add custom mappings after setting a custom metadata factory. Configure your metadata factory instead.');
}
$this->methodMappings = array_merge($this->methodMappings, $methodNames);
return $this;
}