src/FlaggedEnum.php
public function hasFlag(int $bitFlag): bool
    {
        if ($bitFlag >= 1) {
            return $bitFlag === ($bitFlag & $this->value);
        }

        return false;
    }
public function hasFlag(int $bitFlag): bool
    {
        if ($bitFlag >= 1) {
            return $bitFlag === ($bitFlag & $this->value);
        }

        return false;
    }
public function hasFlag ( int $ bitFlag ) : bool { if ( $ bitFlag >= 1 ) { return $ bitFlag === ( $ bitFlag & $ this -> value ) ; } return false ; }
Determines whether the specified flag is set in a numeric value.

@param int $bitFlag The bit flag or bit flags

@return bool True if the bit flag or bit flags are also set in the current instance; otherwise, false
Determines whether the specified flag is set in a numeric value .