From 9e7ddd7c236cefdeec11100747c2ab4d7dd53989 Mon Sep 17 00:00:00 2001 From: Matthieu Napoli Date: Sun, 9 Oct 2016 23:40:55 +0200 Subject: [PATCH] Document why the equals() method is final --- src/Enum.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Enum.php b/src/Enum.php index 144f519..517fbc9 100755 --- a/src/Enum.php +++ b/src/Enum.php @@ -76,6 +76,8 @@ public function __toString() /** * Compares one Enum with another. * + * This method is final, for more information read https://github.com/myclabs/php-enum/issues/4 + * * @return bool True if Enums are equal, false if not equal */ final public function equals(Enum $enum)