rcrowe\Hippy\Transport\Guzzle::getHttp PHP Метод

getHttp() публичный Метод

Get the instance of Guzzle used to send the message.
public getHttp ( ) : Guzzle\Http\ClientInterface
Результат Guzzle\Http\ClientInterface
    public function getHttp()
    {
        return $this->http;
    }

Usage Example

Пример #1
0
 public function testSetHttp()
 {
     $guzzle = new Guzzle(null, null, null);
     $guzzle->setHttp(new Http('https://api.cogpowered.com/v1/'));
     $this->assertEquals($guzzle->getHttp()->getBaseUrl(), 'https://api.cogpowered.com/v1/');
 }