| 1 | <?php |
||
| 8 | class Consumer implements ConsumerInterface |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var ChannelInterface |
||
| 12 | */ |
||
| 13 | private $channel; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var string |
||
| 17 | */ |
||
| 18 | private $tag; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @param ChannelInterface $channel |
||
| 22 | * @param string $tag |
||
| 23 | */ |
||
| 24 | 15 | public function __construct(ChannelInterface $channel, $tag) |
|
| 29 | |||
| 30 | /** |
||
| 31 | * {@inheritdoc} |
||
| 32 | */ |
||
| 33 | 1 | public function cancel() |
|
| 39 | |||
| 40 | /** |
||
| 41 | * {@inheritdoc} |
||
| 42 | */ |
||
| 43 | 4 | public function tag() |
|
| 47 | |||
| 48 | /** |
||
| 49 | * {@inheritdoc} |
||
| 50 | */ |
||
| 51 | 6 | public function isActive() |
|
| 55 | |||
| 56 | /** |
||
| 57 | * @return string |
||
| 58 | */ |
||
| 59 | 2 | public function __toString() |
|
| 63 | } |
||
| 64 |