public function getClient(string $name = 'default')
    {
        if (!isset($this->clients[$name])) {
            throw new InvalidArgumentException("No client with name \"$name\"");
        }

        return $this->clients[$name];
    }
public function getClient(string $name = 'default')
    {
        if (!isset($this->clients[$name])) {
            throw new InvalidArgumentException("No client with name \"$name\"");
        }

        return $this->clients[$name];
    }
public function getClient ( string $ name = 'default' ) { if ( ! isset ( $ this -> clients [ $ name ] ) ) { throw new InvalidArgumentException ( "No client with name \"$name\"" ) ; } return $ this -> clients [ $ name ] ; }
Gets the client with the input name

@param string $name The name of the client to get
@return mixed The client
@throws InvalidArgumentException Thrown if no client with the input name exists
Gets the client with the input name