Add ->toUrl() to MDLicense
This commit is contained in:
@@ -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.
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user