1 | <?php |
||
8 | class BaseService implements RpcServiceInterface |
||
9 | { |
||
10 | private $request; |
||
11 | private $queueName; |
||
12 | private $rpcHandler; |
||
13 | |||
14 | /** @var array */ |
||
15 | protected $queueOptions = [ |
||
16 | 'name' => null, |
||
17 | 'passive' => false, |
||
18 | 'durable' => true, |
||
19 | 'exclusive' => false, |
||
20 | 'auto_delete' => false, //Em caso de falha no serviço a filha se mantém para que outro processe. |
||
21 | 'nowait' => false, |
||
22 | 'arguments' => null, |
||
23 | 'ticket' => null |
||
24 | ]; |
||
25 | |||
26 | public function __construct(Handler $handler, array $queueOptions, array $parameters = null) |
||
32 | |||
33 | /** |
||
34 | * @return \Closure |
||
35 | * @throws InvalidBodyAMQPMessageException |
||
36 | */ |
||
37 | public function createCallback() |
||
56 | |||
57 | public function getQueueName() |
||
61 | |||
62 | /** |
||
63 | * @return array |
||
64 | */ |
||
65 | public function getQueueOptions() |
||
69 | |||
70 | /** |
||
71 | * @return AMQPMessage |
||
72 | */ |
||
73 | public function getRequest() |
||
77 | |||
78 | /** |
||
79 | * @return Handler |
||
80 | */ |
||
81 | public function getHandler() |
||
85 | } |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.