Predis\Response\Iterator\MultiBulk::__construct PHP Method

__construct() public method

public __construct ( Predis\Connection\NodeConnectionInterface $connection, integer $size )
$connection Predis\Connection\NodeConnectionInterface Connection to Redis.
$size integer Number of elements of the multibulk response.
    public function __construct(NodeConnectionInterface $connection, $size)
    {
        $this->connection = $connection;
        $this->size = $size;
        $this->position = 0;
        $this->current = $size > 0 ? $this->getValue() : null;
    }