1 | <?php |
||
12 | class BaseService implements RpcServiceInterface |
||
13 | { |
||
14 | private $queueName; |
||
15 | private $rpcHandler; |
||
16 | private $rpcMessager; |
||
17 | |||
18 | /** @var array */ |
||
19 | protected $queueOptions = [ |
||
20 | 'name' => null, |
||
21 | 'passive' => false, |
||
22 | 'durable' => true, |
||
23 | 'exclusive' => false, |
||
24 | 'auto_delete' => false, //Em caso de falha no serviço a filha se mantém para que outro processe. |
||
25 | 'nowait' => false, |
||
26 | 'arguments' => null, |
||
27 | 'ticket' => null |
||
28 | ]; |
||
29 | |||
30 | public function __construct(Handler $handler, RpcMessager $messager, array $queueOptions, array $parameters = null) |
||
37 | |||
38 | /** |
||
39 | * @return \Closure |
||
40 | * @throws InvalidBodyAMQPMessageException |
||
41 | */ |
||
42 | public function createCallback() |
||
70 | |||
71 | public function buildResponseMessage(RpcResponseCollectionInterface $response, AMQPMessage $requestMessage) |
||
80 | |||
81 | public function getQueueName() |
||
85 | |||
86 | /** |
||
87 | * @return array |
||
88 | */ |
||
89 | public function getQueueOptions() |
||
93 | |||
94 | /** |
||
95 | * @return Handler |
||
96 | */ |
||
97 | public function getHandler() |
||
101 | |||
102 | /** |
||
103 | * @return RpcMessager |
||
104 | */ |
||
105 | public function getMessager() |
||
109 | } |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.