Predis\Pipeline\Pipeline::getClient PHP Method

getClient() public method

Returns the underlying client instance used by the pipeline object.
public getClient ( ) : Predis\ClientInterface
return Predis\ClientInterface
    public function getClient()
    {
        return $this->client;
    }

Usage Example

Esempio n. 1
0
 /**
  * @group disconnected
  */
 public function testConstructor()
 {
     $client = new Client();
     $pipeline = new Pipeline($client);
     $this->assertSame($client, $pipeline->getClient());
 }