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}'.");
}