Skeerel/Util/Enum.php
final public function equals(Enum $enum = null)
    {
        return $enum !== null && $this->getValue() === $enum->getValue() && \get_called_class() === \get_class($enum);
    }
final public function equals(Enum $enum = null)
    {
        return $enum !== null && $this->getValue() === $enum->getValue() && \get_called_class() === \get_class($enum);
    }
final public function equals ( Enum $ enum = null ) { return $ enum !== null && $ this -> getValue ( ) === $ enum -> getValue ( ) && \ get_called_class ( ) === \ get_class ( $ enum ) ; }
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
Compares one Enum with another .