rcrowe\Hippy\Client::getTransport PHP 메소드

getTransport() 공개 메소드

Return the TransportInterface that will actually send the message.
public getTransport ( ) : rcrowe\Hippy\Transport\TransportInterface
리턴 rcrowe\Hippy\Transport\TransportInterface
    public function getTransport()
    {
        return $this->transport;
    }

Usage Example

예제 #1
0
파일: BasicTest.php 프로젝트: rcrowe/hippy
 public function testTransport()
 {
     $transport = new Transport(null, null, null);
     $hippy = new Hippy($transport);
     $this->assertEquals(get_class($hippy->getTransport()), 'rcrowe\\Hippy\\Transport\\Guzzle');
     $transport = new Transport(null, null, null);
     $transport->helloWorld = 'egg';
     $hippy = new Hippy($transport);
     $hippy->setTransport($transport);
     $this->assertEquals($hippy->getTransport()->helloWorld, 'egg');
 }