src/FilterClassMap.php
public function getValidator($name)
    {
        if (!$this->hasValidator($name)) {
            throw new \InvalidArgumentException('validator "'.$name.'" not found');
        }

        return $this->validators[$name];
    }
public function getValidator($name)
    {
        if (!$this->hasValidator($name)) {
            throw new \InvalidArgumentException('validator "'.$name.'" not found');
        }

        return $this->validators[$name];
    }
@param string $name

@throws \InvalidArgumentException

@return ValidatorInterface