eZ\Publish\Core\REST\Server\Output\ValueObjectVisitor\URLAlias::serializeType PHP Method

serializeType() protected method

Serializes the given $urlAliasType to a string representation.
protected serializeType ( integer $urlAliasType ) : string
$urlAliasType integer
return string
    protected function serializeType($urlAliasType)
    {
        switch ($urlAliasType) {
            case Values\Content\URLAlias::LOCATION:
                return 'LOCATION';
            case Values\Content\URLAlias::RESOURCE:
                return 'RESOURCE';
            case Values\Content\URLAlias::VIRTUAL:
                return 'VIRTUAL';
        }
        throw new \RuntimeException("Unknown URL alias type: '{$urlAliasType}'.");
    }