src/RestPool.php
public function addResource($name, RestClient $client, $route, $params = [])
    {
        $this->resources[$name] = $this->buildRequest($client, $route, $params);
    }
public function addResource($name, RestClient $client, $route, $params = [])
    {
        $this->resources[$name] = $this->buildRequest($client, $route, $params);
    }
public function addResource ( $ name , RestClient $ client , $ route , $ params = [ ] ) { $ this -> resources [ $ name ] = $ this -> buildRequest ( $ client , $ route , $ params ) ; }
Add new resource to request pool

@param string $name
@param RestClient $client
@param string $route
@param array $params
Add new resource to request pool