| 1 | <?php |
||
| 8 | final class SystemVReceive implements MessageReceiveInterface |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var string |
||
| 12 | */ |
||
| 13 | private $messageClass; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var resource |
||
| 17 | */ |
||
| 18 | private $queue; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var int |
||
| 22 | */ |
||
| 23 | private $type; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var int |
||
| 27 | */ |
||
| 28 | private $qbytes; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @param string $messageClass |
||
| 32 | * @param int $key |
||
| 33 | * @param int $type |
||
| 34 | * @param int $qbytes |
||
| 35 | */ |
||
| 36 | public function __construct(string $messageClass, int $key, int $type = 1, int $qbytes = 16384) |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @return null|MessageInterface |
||
| 48 | * |
||
| 49 | * @throws \Exception |
||
| 50 | */ |
||
| 51 | public function receive() |
||
| 82 | } |
||
| 83 |