| 1 | <?php |
||
| 18 | class AMQPMessageIterator implements MessageIteratorInterface |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * @var mixed |
||
| 22 | */ |
||
| 23 | protected $message; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var AmqpMessage |
||
| 27 | */ |
||
| 28 | protected $AMQMessage; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @var int |
||
| 32 | */ |
||
| 33 | protected $counter; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @var int |
||
| 37 | */ |
||
| 38 | protected $timeout; |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @var AmqpConsumer |
||
| 42 | */ |
||
| 43 | protected $consumer; |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @var bool |
||
| 47 | */ |
||
| 48 | protected $isValid; |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @param AmqpConsumer $consumer |
||
| 52 | */ |
||
| 53 | public function __construct(AmqpConsumer $consumer) |
||
| 60 | |||
| 61 | /** |
||
| 62 | * {@inheritdoc} |
||
| 63 | */ |
||
| 64 | public function current() |
||
| 68 | |||
| 69 | /** |
||
| 70 | * {@inheritdoc} |
||
| 71 | */ |
||
| 72 | public function next() |
||
| 92 | |||
| 93 | /** |
||
| 94 | * {@inheritdoc} |
||
| 95 | */ |
||
| 96 | public function key() |
||
| 100 | |||
| 101 | /** |
||
| 102 | * {@inheritdoc} |
||
| 103 | */ |
||
| 104 | public function valid() |
||
| 108 | |||
| 109 | /** |
||
| 110 | * {@inheritdoc} |
||
| 111 | */ |
||
| 112 | public function rewind() |
||
| 115 | } |
||
| 116 |