public function setOptions($options): void
    {
        if ($options & self::OPTION_QOP_AUTH_INT) {
            if ($options & self::OPTION_QOP_AUTH) {
                throw new \InvalidArgumentException('DigestAuthMiddleware: Only one value of OPTION_QOP_AUTH_INT or OPTION_QOP_AUTH may be set.');
            }
            $this->options = $this->options | self::OPTION_QOP_AUTH_INT;
        } elseif ($options & self::OPTION_QOP_AUTH) {
            $this->options = $this->options | self::OPTION_QOP_AUTH;
        }

        if ($options & self::OPTION_IGNORE_DOWNGRADE_REQUEST) {
            $this->options = $this->options | self::OPTION_IGNORE_DOWNGRADE_REQUEST;
        }

        if ($options & self::OPTION_DISCARD_CLIENT_NONCE) {
            $this->options = $this->options | self::OPTION_DISCARD_CLIENT_NONCE;
        }
    }
public function setOptions($options): void
    {
        if ($options & self::OPTION_QOP_AUTH_INT) {
            if ($options & self::OPTION_QOP_AUTH) {
                throw new \InvalidArgumentException('DigestAuthMiddleware: Only one value of OPTION_QOP_AUTH_INT or OPTION_QOP_AUTH may be set.');
            }
            $this->options = $this->options | self::OPTION_QOP_AUTH_INT;
        } elseif ($options & self::OPTION_QOP_AUTH) {
            $this->options = $this->options | self::OPTION_QOP_AUTH;
        }

        if ($options & self::OPTION_IGNORE_DOWNGRADE_REQUEST) {
            $this->options = $this->options | self::OPTION_IGNORE_DOWNGRADE_REQUEST;
        }

        if ($options & self::OPTION_DISCARD_CLIENT_NONCE) {
            $this->options = $this->options | self::OPTION_DISCARD_CLIENT_NONCE;
        }
    }
public function setOptions ( $ options ) : void { if ( $ options & self :: OPTION_QOP_AUTH_INT ) { if ( $ options & self :: OPTION_QOP_AUTH ) { throw new \ InvalidArgumentException ( 'DigestAuthMiddleware: Only one value of OPTION_QOP_AUTH_INT or OPTION_QOP_AUTH may be set.' ) ; } $ this -> options = $ this -> options | self :: OPTION_QOP_AUTH_INT ; } elseif ( $ options & self :: OPTION_QOP_AUTH ) { $ this -> options = $ this -> options | self :: OPTION_QOP_AUTH ; } if ( $ options & self :: OPTION_IGNORE_DOWNGRADE_REQUEST ) { $ this -> options = $ this -> options | self :: OPTION_IGNORE_DOWNGRADE_REQUEST ; } if ( $ options & self :: OPTION_DISCARD_CLIENT_NONCE ) { $ this -> options = $ this -> options | self :: OPTION_DISCARD_CLIENT_NONCE ; } }
Sets the options to be used by this class.

@param mixed $options a bitmask of the constants defined in this class
Sets the options to be used by this class .