1 | <?php |
||
17 | class BusHelper implements HelperInterface |
||
18 | { |
||
19 | private $helperSet; |
||
20 | |||
21 | private $commandBus; |
||
22 | |||
23 | private $queryBus; |
||
24 | |||
25 | 4 | public function setCommandBus(BusInterface $commandBus): BusHelper |
|
26 | { |
||
27 | 4 | $this->commandBus = $commandBus; |
|
28 | |||
29 | 4 | return $this; |
|
30 | } |
||
31 | |||
32 | 4 | public function setQueryBus(BusInterface $queryBus): BusHelper |
|
33 | { |
||
34 | 4 | $this->queryBus = $queryBus; |
|
35 | |||
36 | 4 | return $this; |
|
37 | } |
||
38 | |||
39 | 10 | public function setHelperSet(HelperSet $helperSet = null) |
|
45 | |||
46 | /** |
||
47 | * Gets the helper set associated with this helper. |
||
48 | * |
||
49 | * @return HelperSet A HelperSet instance |
||
50 | */ |
||
51 | public function getHelperSet() |
||
55 | |||
56 | /** |
||
57 | * Returns the canonical name of this helper. |
||
58 | * |
||
59 | * @return string The canonical name |
||
60 | */ |
||
61 | 10 | public function getName() |
|
65 | |||
66 | /** |
||
67 | * @param mixed $message |
||
68 | * |
||
69 | * @throws \RuntimeException |
||
70 | */ |
||
71 | 2 | public function postCommand($message): void |
|
81 | |||
82 | /** |
||
83 | * @param mixed $message |
||
84 | * @param ?callable $callback To get response data |
||
|
|||
85 | * |
||
86 | * @throws \RuntimeException |
||
87 | */ |
||
88 | 2 | public function postQuery($message, ?callable $callback = null): void |
|
98 | } |
||
99 |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.