1 | <?php |
||
25 | class Tools extends ToolsBase |
||
26 | { |
||
27 | /** |
||
28 | * @var string |
||
29 | */ |
||
30 | public $lastRequest; |
||
31 | /** |
||
32 | * @var string |
||
33 | */ |
||
34 | public $lastResponse; |
||
35 | /** |
||
36 | * @var SoapInterface |
||
37 | */ |
||
38 | protected $soap; |
||
39 | /** |
||
40 | * @var array |
||
41 | */ |
||
42 | protected $soapnamespaces = [ |
||
43 | 'xmlns:soapenv' => "http://schemas.xmlsoap.org/soap/envelope/", |
||
44 | 'xmlns:sped'=> "http://sped.fazenda.gov.br/" |
||
45 | ]; |
||
46 | /** |
||
47 | * @var array |
||
48 | */ |
||
49 | protected $uri = [ |
||
50 | '1' => '', |
||
51 | '2' => 'https://preprodefdreinf.receita.fazenda.gov.br/RecepcaoLoteReinf.svc', |
||
52 | '3' => 'https://preprodefdreinf.receita.fazenda.gov.br/RecepcaoLoteReinf.svc' |
||
53 | ]; |
||
54 | /** |
||
55 | * @var string |
||
56 | */ |
||
57 | protected $action; |
||
58 | /** |
||
59 | * @var string |
||
60 | */ |
||
61 | protected $method; |
||
62 | |||
63 | /** |
||
64 | * Constructor |
||
65 | * @param string $config |
||
66 | * @param Certificate $certificate |
||
67 | */ |
||
68 | public function __construct($config, Certificate $certificate) |
||
72 | |||
73 | /** |
||
74 | * SOAP communication dependency injection |
||
75 | * @param SoapInterface $soap |
||
76 | */ |
||
77 | public function loadSoapClass(SoapInterface $soap) |
||
81 | |||
82 | /** |
||
83 | * Event batch query |
||
84 | * @param string $protocolo |
||
85 | * @return string |
||
86 | */ |
||
87 | public function consultarLoteEventos($protocolo) |
||
|
|||
88 | { |
||
89 | return ''; |
||
90 | } |
||
91 | |||
92 | /** |
||
93 | * Send batch of events |
||
94 | * @param array $eventos |
||
95 | * @return string |
||
96 | */ |
||
97 | public function enviarLoteEventos($eventos = []) |
||
141 | |||
142 | /** |
||
143 | * Send request to webservice |
||
144 | * @param string $request |
||
145 | * @return string |
||
146 | */ |
||
147 | protected function sendRequest($request) |
||
178 | |||
179 | /** |
||
180 | * Verify the availability of a digital certificate. |
||
181 | * If available, place it where it is needed |
||
182 | * @param FactoryInterface $evento |
||
183 | * @throws RuntimeException |
||
184 | */ |
||
185 | protected function checkCertificate(FactoryInterface $evento) |
||
193 | } |
||
194 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.