<?php
namespace Predis\Monitor;
use Iterator;
use Predis\ClientInterface;
use Predis\Connection\Cluster\ClusterInterface;
use Predis\NotSupportedException;
use ReturnTypeWillChange;
class Consumer implements Iterator
{
private $client;
private $valid;
private $position;
public function __construct(ClientInterface $client)
{
$this->assertClient($client);
$this->client = $client;
$this->start();
}
public function __destruct()