Add ->toUrl() to MDLicense

This commit is contained in:
jrenslin committed 2025-10-29 15:14:40 +01:00
1 parent 5928a82350
commit ae302bcd54
1 file changed
+11
+11
View File
@@ -211,6 +211,17 @@ public function toString():string {
}
/**
* Returns string representation.
*
* @return string
*/
public function toUrl():string {
return self::AVAILABLE_LICENSES[$this->toString()];
}
/**
* Returns the name of the current value in translation.
*