Skip to content

Commit

Permalink
Document why the equals() method is final
Browse files Browse the repository at this point in the history
  • Loading branch information
mnapoli authored Oct 9, 2016
1 parent b687d92 commit 9e7ddd7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Enum.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9e7ddd7

Please sign in to comment.