Skip to content

Commit 66eff0f

Browse files
authored
Logistica Reversa Model
Adição da Logística Reversa
1 parent b1ac9ae commit 66eff0f

8 files changed

+1814
-0
lines changed
Lines changed: 252 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,252 @@
1+
<?php
2+
namespace PhpSigep\Model;
3+
use PhpSigep\InvalidArgument;
4+
5+
/**
6+
* @author: Rodrigo Job (rodrigo at econector.com.br)
7+
*/
8+
class LogisticaReversa extends AbstractModel
9+
{
10+
11+
/**
12+
* @var string
13+
*/
14+
protected $codAdministrativo;
15+
/**
16+
* @var string
17+
*/
18+
protected $tipoBusca;
19+
/**
20+
* @var string
21+
*/
22+
protected $tipoSolicitacao;
23+
/**
24+
* @var string
25+
*/
26+
protected $numeroPedido;
27+
/**
28+
* @var string
29+
*/
30+
protected $qtdeDias;
31+
/**
32+
* Opcional.
33+
* Quando não informado será usado o valor retornado pelo método {@link \PhpSigep\Bootstrap::getConfig() }
34+
* @var AccessData
35+
*/
36+
protected $accessData;
37+
38+
/**
39+
* @var string
40+
*/
41+
protected $prazo;
42+
/**
43+
* @var string
44+
*/
45+
protected $msg_erro;
46+
/**
47+
* @var string
48+
*/
49+
protected $cod_erro;
50+
/**
51+
* @var string
52+
*/
53+
protected $tipo;
54+
/**
55+
* @var @link \PhpSigep\ObjetoPostal()
56+
*/
57+
protected $objetoPostal;
58+
59+
60+
61+
/**
62+
* @return \PhpSigep\Model\AccessData
63+
*/
64+
public function getAccessData()
65+
{
66+
return $this->accessData;
67+
}
68+
69+
/**
70+
* @param \PhpSigep\Model\AccessData $accessData
71+
* Opcional.
72+
* Quando null será usado o valor retornado pelo método {@link \PhpSigep\Bootstrap::getConfig() }
73+
*/
74+
public function setAccessData(AccessData $accessData)
75+
{
76+
$this->accessData = $accessData;
77+
}
78+
79+
/**
80+
* @param string $tipoBusca
81+
*/
82+
public function setTipoBusca($tipoBusca)
83+
{
84+
$this->tipoBusca= $tipoBusca;
85+
}
86+
87+
/**
88+
* @return string
89+
*/
90+
public function getTipoBusca()
91+
{
92+
return $this->tipoBusca;
93+
}
94+
95+
/**
96+
* @param string codAdministativo
97+
*/
98+
public function setCodAdministrativo($codAdministativo)
99+
{
100+
$this->codAdministativo= $codAdministativo;
101+
}
102+
103+
/**
104+
* @return string
105+
*/
106+
public function getCodAdministativo()
107+
{
108+
return $this->codAdministativo;
109+
}
110+
111+
/**
112+
* @param string codAdministativo
113+
*/
114+
public function setQtdeDias($qtdeDias)
115+
{
116+
$this->qtdeDias= $qtdeDias;
117+
}
118+
119+
/**
120+
* @return string
121+
*/
122+
public function getQtdeDias()
123+
{
124+
return $this->qtdeDias;
125+
}
126+
127+
/**
128+
* @param string $tipoSolicitacao
129+
*/
130+
public function setTipoSolicitacao($tipoSolicitacao)
131+
{
132+
$this->tipoSolicitacao = $tipoSolicitacao;
133+
}
134+
135+
/**
136+
* @return string
137+
*/
138+
public function getTipoSolicitacao()
139+
{
140+
return $this->tipoSolicitacao;
141+
}
142+
143+
/**
144+
* @param string numeroPedido
145+
*/
146+
public function setNumeroPedido($numeroPedido)
147+
{
148+
$this->numeroPedido = preg_replace('/[^\d]/', '', $numeroPedido);
149+
}
150+
151+
/**
152+
* @return string
153+
*/
154+
public function getNumeroPedido()
155+
{
156+
return $this->numeroPedido;
157+
}
158+
159+
/**
160+
* @return string
161+
*/
162+
public function getPrazo()
163+
{
164+
return $this->prazo;
165+
}
166+
167+
/**
168+
* @param string prazo
169+
*/
170+
public function setPrazo($prazo)
171+
{
172+
$this->prazo = preg_replace('/[^\d]/', '', $prazo);
173+
}
174+
175+
176+
/**
177+
* @param string msg_erro
178+
*/
179+
public function setMsgErro($msgErro)
180+
{
181+
$this->msg_erro = $msgErro;
182+
}
183+
184+
/**
185+
* @return string
186+
*/
187+
public function getErrorMsg()
188+
{
189+
return $this->msg_erro;
190+
}
191+
192+
193+
/**
194+
* @param string cod_erro
195+
*/
196+
public function setErrorCode($codErro)
197+
{
198+
$this->cod_erro = $codErro;
199+
}
200+
/**
201+
* @return string
202+
*/
203+
public function getCodErro()
204+
{
205+
return $this->cod_erro;
206+
}
207+
/**
208+
* @param string tipo
209+
*/
210+
public function setTipo($tipo)
211+
{
212+
$this->tipo = $tipo;
213+
}
214+
/**
215+
* @return string
216+
*/
217+
public function getTipo()
218+
{
219+
return $this->tipo;
220+
}
221+
222+
/**
223+
* @return \PhpSigep\Model\ObjetoPostal
224+
*/
225+
public function getObjetoPostal()
226+
{
227+
return $this->objetoPostal;
228+
}
229+
230+
/**
231+
* @param \PhpSigep\Model\ObjetoPostal $objetoPostal
232+
*/
233+
public function setObjetoPostal(ObjetoPostal $objetoPostal)
234+
{
235+
$this->objetoPostal = $objetoPostal;
236+
}
237+
238+
/**
239+
* @return array
240+
*/
241+
public function getDados()
242+
{
243+
return array(
244+
"accessData" => $this->accessData,
245+
"codAdministrativo" => $this->codAdministrativo,
246+
"numero_pedido" => $this->numeroPedido,
247+
"tipo" => $this->tipo,
248+
);
249+
}
250+
251+
252+
}

0 commit comments

Comments
 (0)