protected function configureProtocol(): void
    {
        $protocol = $this->options['protocol'];

        if (!$protocol || !($protocol instanceof Protocol)) {
            throw new InvalidArgumentException('Invalid protocol option');
        }

        $this->protocol = $protocol;
    }
protected function configureProtocol(): void
    {
        $protocol = $this->options['protocol'];

        if (!$protocol || !($protocol instanceof Protocol)) {
            throw new InvalidArgumentException('Invalid protocol option');
        }

        $this->protocol = $protocol;
    }
protected function configureProtocol ( ) : void { $ protocol = $ this -> options [ 'protocol' ] ; if ( ! $ protocol || ! ( $ protocol instanceof Protocol ) ) { throw new InvalidArgumentException ( 'Invalid protocol option' ) ; } $ this -> protocol = $ protocol ; }
Configures the protocol option

@throws InvalidArgumentException
Configures the protocol option