src/RestPool.php
public function send()
    {
        $responses = new \StdClass();

        foreach ($this->resources as $key => $promise) {
            $response = $promise->wait();
            $responses->{$key} = $this->parse($response->getBody());
        }

        return $responses;
    }
public function send()
    {
        $responses = new \StdClass();

        foreach ($this->resources as $key => $promise) {
            $response = $promise->wait();
            $responses->{$key} = $this->parse($response->getBody());
        }

        return $responses;
    }
public function send ( ) { $ responses = new \ StdClass ( ) ; foreach ( $ this -> resources as $ key => $ promise ) { $ response = $ promise -> wait ( ) ; $ responses -> { $ key } = $ this -> parse ( $ response -> getBody ( ) ) ; } return $ responses ; }
Send and parse the request pool

@return \StdClass
Send and parse the request pool