1 | <?php |
||
8 | abstract class RpcBaseService implements RpcServiceInterface |
||
9 | { |
||
10 | private $queueName; |
||
11 | |||
12 | /** @var array */ |
||
13 | protected $queueOptions = [ |
||
14 | 'name' => null, |
||
15 | 'passive' => false, |
||
16 | 'durable' => true, |
||
17 | 'exclusive' => false, |
||
18 | 'auto_delete' => false, //Em caso de falha no serviço a filha se mantém para que outro processe. |
||
19 | 'nowait' => false, |
||
20 | 'arguments' => null, |
||
21 | 'ticket' => null |
||
22 | ]; |
||
23 | |||
24 | public function __construct(array $queueOptions, array $parameters = null) |
||
29 | |||
30 | /** |
||
31 | * @return string |
||
32 | */ |
||
33 | protected abstract function buildService(); |
||
34 | |||
35 | /** |
||
36 | * @return \Closure |
||
37 | * @throws InvalidBodyAMQPMessageException |
||
38 | */ |
||
39 | public function createCallback() |
||
65 | |||
66 | public function getQueueName() |
||
70 | } |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.