1 | <?php |
||
9 | class Base |
||
10 | { |
||
11 | |||
12 | protected $errors; |
||
13 | /** |
||
14 | * tpAmb |
||
15 | * @var int |
||
16 | */ |
||
17 | protected $tpAmb = 2; |
||
18 | /** |
||
19 | * ambiente |
||
20 | * @var string |
||
21 | */ |
||
22 | protected $ambiente = 'homologacao'; |
||
23 | /** |
||
24 | * Diretorio para gravar arquivos de LOG |
||
25 | * @var string |
||
26 | */ |
||
27 | protected $pathFiles = ''; |
||
28 | /** |
||
29 | * aConfig |
||
30 | * @var array |
||
31 | */ |
||
32 | protected $aConfig = array(); |
||
33 | /** |
||
34 | * aProxy |
||
35 | * @var array |
||
36 | */ |
||
37 | protected $aProxy = array(); |
||
38 | /** |
||
39 | * soapTimeout |
||
40 | * @var int |
||
41 | */ |
||
42 | protected $soapTimeout = 10; |
||
43 | /** |
||
44 | * oSoap |
||
45 | * @var Object Class |
||
46 | */ |
||
47 | protected $oSoap; |
||
48 | /** |
||
49 | * soapDebug |
||
50 | * @var string |
||
51 | */ |
||
52 | protected $soapDebug = ''; |
||
53 | /** |
||
54 | * Header da mensagem SOAP |
||
55 | * @var string |
||
56 | */ |
||
57 | protected $header; |
||
58 | /** |
||
59 | * Nome do usuário do sistema |
||
60 | * @var string |
||
61 | */ |
||
62 | protected $username; |
||
63 | /** |
||
64 | * Password do usuário do sistema |
||
65 | * @var string |
||
66 | */ |
||
67 | protected $password; |
||
68 | /** |
||
69 | * Código da Unidade Gestora conforme informado pelo serviço listar |
||
70 | * da tabela unidades gestoras |
||
71 | * @var string |
||
72 | */ |
||
73 | protected $codigoUnidadeGestora; |
||
74 | |||
75 | /** |
||
76 | * Contrutor |
||
77 | * @param string $configJson |
||
78 | */ |
||
79 | public function __construct($configJson = '') |
||
98 | |||
99 | /** |
||
100 | * Seta o ambiente de trabalho |
||
101 | * 1 - Produção |
||
102 | * 2 - Homologação |
||
103 | * @param int $tpAmb |
||
104 | */ |
||
105 | public function setAmbiente($tpAmb = 2) |
||
117 | |||
118 | /** |
||
119 | * setSoapTimeOut |
||
120 | * Seta um valor para timeout |
||
121 | * |
||
122 | * @param integer $segundos |
||
123 | */ |
||
124 | public function setSoapTimeOut($segundos = 10) |
||
131 | |||
132 | /** |
||
133 | * getSoapTimeOut |
||
134 | * Retorna o valor de timeout defido |
||
135 | * |
||
136 | * @return integer |
||
137 | */ |
||
138 | public function getSoapTimeOut() |
||
142 | |||
143 | /** |
||
144 | * Grava as mensagens em disco |
||
145 | * |
||
146 | * @param string $data conteudo a ser gravado |
||
147 | * @param string $filename |
||
148 | * @param int $tpAmb |
||
149 | * @param string $folder |
||
150 | * @param string $subFolder |
||
151 | * @throws RuntimeException |
||
152 | */ |
||
153 | protected function gravaLog( |
||
172 | |||
173 | /** |
||
174 | * Monta as tags com base na chave e no valor do array |
||
175 | * @param array $data |
||
176 | * @return string |
||
177 | */ |
||
178 | protected function addTag($data) |
||
186 | |||
187 | /** |
||
188 | * Monta o conjunto de Body na função enviar |
||
189 | * @param string $key |
||
190 | * @param array $data |
||
191 | * @return string |
||
192 | */ |
||
193 | protected function buildEnviarB($key, $data) |
||
207 | |||
208 | /** |
||
209 | * Monta o conjunto Body da função Listar |
||
210 | * @param string $pagina |
||
211 | * @param array $filtros |
||
212 | * @return string |
||
213 | */ |
||
214 | protected function buildListarB($pagina = '', $filtros = []) |
||
226 | |||
227 | /** |
||
228 | * Monta a primeira parte de todas mensagens |
||
229 | * @param string $namespace |
||
230 | * @return string |
||
231 | */ |
||
232 | protected function buildMsgH($tipo, $namespace) |
||
246 | |||
247 | /** |
||
248 | * Monta o corpo de todas as mensagens |
||
249 | * @param string $tipo |
||
250 | * @param array $data |
||
251 | * @return string |
||
252 | */ |
||
253 | protected function buildMsgB($tipo, $data) |
||
262 | |||
263 | /** |
||
264 | * Constroi o header da mensagem SOAP |
||
265 | */ |
||
266 | protected function buildSoapHeader() |
||
283 | |||
284 | /** |
||
285 | * Envia a mensagem para o webservice |
||
286 | * |
||
287 | * @param string $urlService |
||
288 | * @param strting $body |
||
289 | * @param string $method |
||
290 | * @return string |
||
291 | */ |
||
292 | protected function envia($uri, $namespace, $data, $method, $met) |
||
307 | |||
308 | /** |
||
309 | * Carrega a classe SOAP e os certificados |
||
310 | */ |
||
311 | protected function loadSoapClass() |
||
322 | } |
||
323 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..