public function equalsTo($value)
    {
        if (is_object($value) && $value instanceof Enum) {
            return $value->getValue() == $this->value;
        }
        return $value == $this->value;
    }
public function equalsTo($value)
    {
        if (is_object($value) && $value instanceof Enum) {
            return $value->getValue() == $this->value;
        }
        return $value == $this->value;
    }
public function equalsTo ( $ value ) { if ( is_object ( $ value ) && $ value instanceof Enum ) { return $ value -> getValue ( ) == $ this -> value ; } return $ value == $ this -> value ; }
Compares given enum value to another value

@param Enum|mixed $value A scalar value or another Enum to compare with
@return boolean true if values are equal, false otherwise
Compares given enum value to another value