diff --git a/src/enums/MDLicense.php b/src/enums/MDLicense.php index edf0554..7ae8200 100644 --- a/src/enums/MDLicense.php +++ b/src/enums/MDLicense.php @@ -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. *