| 1 | <?php |
||
| 15 | class StatusResult extends BaseResult |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * StatusCode enviado por Sunat. |
||
| 19 | * |
||
| 20 | * 0 = Procesó correctamente |
||
| 21 | * 98 = En proceso |
||
| 22 | * 99 = Proceso con errores |
||
| 23 | * |
||
| 24 | * @var string |
||
| 25 | */ |
||
| 26 | protected $code; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var string |
||
| 30 | */ |
||
| 31 | protected $cdrZip; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @var CdrResponse |
||
| 35 | */ |
||
| 36 | protected $cdrResponse; |
||
| 37 | /** |
||
| 38 | * @return string |
||
| 39 | */ |
||
| 40 | 4 | public function getCode() |
|
| 41 | { |
||
| 42 | 4 | return $this->code; |
|
| 43 | } |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @param string $code |
||
| 47 | * @return StatusResult |
||
| 48 | */ |
||
| 49 | 2 | public function setCode($code) |
|
| 54 | |||
| 55 | /** |
||
| 56 | * @return string |
||
| 57 | */ |
||
| 58 | 4 | public function getCdrZip() |
|
| 59 | { |
||
| 60 | 4 | return $this->cdrZip; |
|
| 61 | } |
||
| 62 | |||
| 63 | /** |
||
| 64 | * @param string $cdrZip |
||
| 65 | * @return StatusResult |
||
| 66 | */ |
||
| 67 | 2 | public function setCdrZip($cdrZip) |
|
| 68 | { |
||
| 69 | 2 | $this->cdrZip = $cdrZip; |
|
| 70 | 2 | return $this; |
|
| 71 | } |
||
| 72 | |||
| 73 | /** |
||
| 74 | * @return CdrResponse |
||
| 75 | */ |
||
| 76 | 4 | public function getCdrResponse() |
|
| 77 | { |
||
| 78 | 4 | return $this->cdrResponse; |
|
| 79 | } |
||
| 80 | |||
| 81 | /** |
||
| 82 | * @param CdrResponse $cdrResponse |
||
| 83 | * @return StatusResult |
||
| 84 | */ |
||
| 85 | 2 | public function setCdrResponse($cdrResponse) |
|
| 90 | } |