| 1 | <?php |
||
| 9 | abstract class AbstractMessage implements OptionsInterface |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var string |
||
| 13 | */ |
||
| 14 | protected $command; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | protected $handler; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | protected $queue; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Returns the command class name |
||
| 28 | * |
||
| 29 | * @return string |
||
| 30 | * |
||
| 31 | * @throws MessageException If the command property isn't set |
||
| 32 | */ |
||
| 33 | public function command() |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Returns the handler name |
||
| 44 | * |
||
| 45 | * @return string |
||
| 46 | * |
||
| 47 | * @throws MessageException If the handler property isn't set |
||
| 48 | */ |
||
| 49 | public function handler() |
||
| 57 | |||
| 58 | /** |
||
| 59 | * Returns the queue name |
||
| 60 | * |
||
| 61 | * @return string |
||
| 62 | * |
||
| 63 | * @throws MessageException If the queue property isn't set |
||
| 64 | */ |
||
| 65 | public function queue() |
||
| 73 | } |
||
| 74 |