final public function is($enumerator)
    {
        return $this === $enumerator || $this->value === $enumerator

            // The following additional conditions are required only because of the issue of serializable singletons
            || ($enumerator instanceof static
                && \get_class($enumerator) === static::class
                && $enumerator->value === $this->value
            );
    }
final public function is($enumerator)
    {
        return $this === $enumerator || $this->value === $enumerator

            // The following additional conditions are required only because of the issue of serializable singletons
            || ($enumerator instanceof static
                && \get_class($enumerator) === static::class
                && $enumerator->value === $this->value
            );
    }
final public function is ( $ enumerator ) { return $ this === $ enumerator || $ this -> value === $ enumerator // The following additional conditions are required only because of the issue of serializable singletons || ( $ enumerator instanceof static && \ get_class ( $ enumerator ) === static :: class && $ enumerator -> value === $ this -> value ) ; }
Compare this enumerator against another and check if it's the same.

@param static|null|bool|int|float|string|array $enumerator An enumerator object or value
@return bool
Compare this enumerator against another and check if it s the same .