Add ->toUrl() to MDLicense

This commit is contained in:
2025-10-29 15:14:40 +01:00
parent 5928a82350
commit ae302bcd54

View File

@@ -211,6 +211,17 @@ enum MDLicense implements MDValueEnumInterface, JsonSerializable {
} }
/**
* Returns string representation.
*
* @return string
*/
public function toUrl():string {
return self::AVAILABLE_LICENSES[$this->toString()];
}
/** /**
* Returns the name of the current value in translation. * Returns the name of the current value in translation.
* *