Neos\Flow\Validation\ValidatorResolver::getValidatorType PHP Method

getValidatorType() protected method

Used to map PHP types to validator types.
protected getValidatorType ( string $type ) : string
$type string Data type to unify
return string unified data type
    protected function getValidatorType($type)
    {
        switch ($type) {
            case 'int':
                $type = 'Integer';
                break;
            case 'bool':
                $type = 'Boolean';
                break;
            case 'double':
                $type = 'Float';
                break;
            case 'numeric':
                $type = 'Number';
                break;
            case 'mixed':
                $type = 'Raw';
                break;
            default:
                $type = ucfirst($type);
        }
        return $type;
    }