src/Enum.php
public function equals($object)
    {
        if (!($object instanceof self) || !self::compatibles(get_class($object), static::class)) {
            return false;
        }

        return $this->value() == $object->value();
    }
public function equals($object)
    {
        if (!($object instanceof self) || !self::compatibles(get_class($object), static::class)) {
            return false;
        }

        return $this->value() == $object->value();
    }
public function equals ( $ object ) { if ( ! ( $ object instanceof self ) || ! self :: compatibles ( get_class ( $ object ) , static :: class ) ) { return false ; } return $ this -> value ( ) == $ object -> value ( ) ; }
Checks if two enums are equal. Value and class are both matched.
Value check is not type strict.

@param mixed $object

@return bool True if enums are equal
Checks if two enums are equal . Value and class are both matched . Value check is not type strict .