Completed
Push — master ( a41bca...d54f6c )
by Giancarlos
02:37
created

StatusResult   A

Complexity

Total Complexity 8

Size/Duplication

Total Lines 95
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 8
lcom 0
cbo 1
dl 0
loc 95
ccs 0
cts 36
cp 0
rs 10
c 0
b 0
f 0

8 Methods

Rating   Name   Duplication   Size   Complexity  
A getCode() 0 4 1
A setCode() 0 5 1
A getCdrZip() 0 4 1
A getMessage() 0 4 1
A setMessage() 0 5 1
A setCdrZip() 0 5 1
A getCdrResponse() 0 4 1
A setCdrResponse() 0 5 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: Giansalex
5
 * Date: 21/07/2017
6
 * Time: 23:20
7
 */
8
9
namespace Greenter\Model\Response;
10
11
/**
12
 * Class StatusResult
13
 * @package Greenter\Model\Response
14
 */
15
class StatusResult extends BaseResult
16
{
17
    /**
18
     * StatusCode enviado por Sunat.
19
     * @var string
20
     */
21
    protected $code;
22
23
    /**
24
     * Indica si CDR existe o se encuentra en proceso.
25
     * @var string
26
     */
27
    protected $message;
28
29
    /**
30
     * @var string
31
     */
32
    protected $cdrZip;
33
34
    /**
35
     * @var CdrResponse
36
     */
37
    protected $cdrResponse;
38
    /**
39
     * @return string
40
     */
41
    public function getCode()
42
    {
43
        return $this->code;
44
    }
45
46
    /**
47
     * @param string $code
48
     * @return StatusResult
49
     */
50
    public function setCode($code)
51
    {
52
        $this->code = $code;
53
        return $this;
54
    }
55
56
    /**
57
     * @return string
58
     */
59
    public function getCdrZip()
60
    {
61
        return $this->cdrZip;
62
    }
63
64
    /**
65
     * @return string
66
     */
67
    public function getMessage()
68
    {
69
        return $this->message;
70
    }
71
72
    /**
73
     * @param string $message
74
     * @return StatusResult
75
     */
76
    public function setMessage($message)
77
    {
78
        $this->message = $message;
79
        return $this;
80
    }
81
82
    /**
83
     * @param string $cdrZip
84
     * @return StatusResult
85
     */
86
    public function setCdrZip($cdrZip)
87
    {
88
        $this->cdrZip = $cdrZip;
89
        return $this;
90
    }
91
92
    /**
93
     * @return CdrResponse
94
     */
95
    public function getCdrResponse()
96
    {
97
        return $this->cdrResponse;
98
    }
99
100
    /**
101
     * @param CdrResponse $cdrResponse
102
     * @return StatusResult
103
     */
104
    public function setCdrResponse($cdrResponse)
105
    {
106
        $this->cdrResponse = $cdrResponse;
107
        return $this;
108
    }
109
}