src/FilterClassMap.php
public function addSanitizer($name, $sanitizer)
    {
        $name = (string) $name;
        if ($name === '') {
            throw new \InvalidArgumentException('$name cannot be empty');
        }

        $sanitizer = (string) $sanitizer;
        if ($sanitizer === '') {
            throw new \InvalidArgumentException('$sanitizer cannot be empty');
        }

        $this->sanitizers[$name] = $sanitizer;
    }
public function addSanitizer($name, $sanitizer)
    {
        $name = (string) $name;
        if ($name === '') {
            throw new \InvalidArgumentException('$name cannot be empty');
        }

        $sanitizer = (string) $sanitizer;
        if ($sanitizer === '') {
            throw new \InvalidArgumentException('$sanitizer cannot be empty');
        }

        $this->sanitizers[$name] = $sanitizer;
    }
@param string $name
@param string $validator

@throws \InvalidArgumentException