From ae302bcd542a1c8a359bcc3f14ccc229c55a18ac Mon Sep 17 00:00:00 2001 From: Joshua Ramon Enslin Date: Wed, 29 Oct 2025 15:14:40 +0100 Subject: [PATCH] Add ->toUrl() to MDLicense --- src/enums/MDLicense.php | 11 +++++++++++ 1 file changed, 11 insertions(+) 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. *