Enables constraint mapping using the given static method.
string $methodName The name of the method.:
ValidatorBuilderInterface The builder object.
Overrides ValidatorBuilderInterface::addMethodMapping
public function addMethodMapping($methodName) {
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[] = $methodName;
return $this;
}