public function setClient(ClientInterface $client = null): self
    {
        if (null === $client) {
            $this->client = new Client();

            return $this;
        }

        $this->client = $client;

        return $this;
    }
public function setClient(ClientInterface $client = null): self
    {
        if (null === $client) {
            $this->client = new Client();

            return $this;
        }

        $this->client = $client;

        return $this;
    }
public function setClient ( ClientInterface $ client = null ) : self { if ( null === $ client ) { $ this -> client = new Client ( ) ; return $ this ; } $ this -> client = $ client ; return $ this ; }
Set the client used for the operations.

@param ClientInterface|null $client

@return $this
Set the client used for the operations .