src/Headzoo/Core/AbstractEnum.php
public function equals($value)
    {
        if (is_object($value) && get_class($value) == get_class($this)) {
            $equals = $value->value() === $this->value();
        } else {
            $equals = $this->value() === ((string)$value);
        }
        
        return $equals;
    }
public function equals($value)
    {
        if (is_object($value) && get_class($value) == get_class($this)) {
            $equals = $value->value() === $this->value();
        } else {
            $equals = $this->value() === ((string)$value);
        }
        
        return $equals;
    }
public function equals ( $ value ) { if ( is_object ( $ value ) && get_class ( $ value ) == get_class ( $ this ) ) { $ equals = $ value -> value ( ) === $ this -> value ( ) ; } else { $ equals = $ this -> value ( ) === ( ( string ) $ value ) ; } return $ equals ; }
Returns whether the value is equal to this value

Performs a strict comparison of this enum value, and another value. The other value may be either a string,
or another instance of the same enum.

@param  string|AbstractEnum $value The value to compare
@return bool
Returns whether the value is equal to this value