public function setTransport(TransportInterface $transport)
    {
        if (!$transport instanceof CurlTransport) {
            throw new \InvalidArgumentException(
                sprintf(
                    '%s only supports %s',
                    get_called_class(),
                    CurlTransport::class
                )
            );
        }

        $this->transport = $transport;

        return $this;
    }
public function setTransport(TransportInterface $transport)
    {
        if (!$transport instanceof CurlTransport) {
            throw new \InvalidArgumentException(
                sprintf(
                    '%s only supports %s',
                    get_called_class(),
                    CurlTransport::class
                )
            );
        }

        $this->transport = $transport;

        return $this;
    }
public function setTransport ( TransportInterface $ transport ) { if ( ! $ transport instanceof CurlTransport ) { throw new \ InvalidArgumentException ( sprintf ( '%s only supports %s' , get_called_class ( ) , CurlTransport :: class ) ) ; } $ this -> transport = $ transport ; return $ this ; }
Method to set property transport

@param   TransportInterface $transport

@return  static  Return self to support chaining.
@throws \InvalidArgumentException
Method to set property transport