PhpSandbox\PHPSandbox::getValidator PHP Method

getValidator() public method

Get validation callable for specified $type
public getValidator ( string $type ) : callable | null
$type string String of $type to return
return callable | null
    public function getValidator($type)
    {
        $type = strtolower($type);
        //normalize type
        return isset($this->validation[$type]) ? $this->validation[$type] : null;
    }
PHPSandbox