src/ClientBuilder.php
public function build($service = null)
    {
        if (!$this->sender) {
            $this->sender = $this->buildGuzzleSender();
        }

        if (!$this->factory) {
            throw new RuntimeException("You need to provide a configuration or a factory for requests");
        }

        if (!$this->logger) {
            $this->logger = new NullLogger();
        }

        return $this->buildClient($this->factory, $this->sender, $this->logger, $service);
    }
public function build($service = null)
    {
        if (!$this->sender) {
            $this->sender = $this->buildGuzzleSender();
        }

        if (!$this->factory) {
            throw new RuntimeException("You need to provide a configuration or a factory for requests");
        }

        if (!$this->logger) {
            $this->logger = new NullLogger();
        }

        return $this->buildClient($this->factory, $this->sender, $this->logger, $service);
    }
public function build ( $ service = null ) { if ( ! $ this -> sender ) { $ this -> sender = $ this -> buildGuzzleSender ( ) ; } if ( ! $ this -> factory ) { throw new RuntimeException ( "You need to provide a configuration or a factory for requests" ) ; } if ( ! $ this -> logger ) { $ this -> logger = new NullLogger ( ) ; } return $ this -> buildClient ( $ this -> factory , $ this -> sender , $ this -> logger , $ service ) ; }
Builds the client with the configured values

@param string|null $service

@return Client
Builds the client with the configured values