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