Passed
Push — master ( 65060b...2b54a2 )
by Julito
10:15
created

ImsLtiServiceResponseStatus   A

Complexity

Total Complexity 10

Size/Duplication

Total Lines 154
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 28
c 1
b 0
f 0
dl 0
loc 154
rs 10
wmc 10

10 Methods

Rating   Name   Duplication   Size   Complexity  
A setOperationRefIdentifier() 0 5 1
A setCodeMajor() 0 5 1
A setDescription() 0 5 1
A getMessageRefIdentifier() 0 3 1
A setMessageRefIdentifier() 0 5 1
A getSeverity() 0 3 1
A getOperationRefIdentifier() 0 3 1
A getDescription() 0 3 1
A getCodeMajor() 0 3 1
A setSeverity() 0 5 1
1
<?php
2
/* For licensing terms, see /license.txt */
3
4
/**
5
 * Class ImsLtiResponseStatus.
6
 */
7
class ImsLtiServiceResponseStatus
8
{
9
    const SEVERITY_STATUS = 'status';
10
    const SEVERITY_WARNING = 'warning';
11
    const SEVERITY_ERROR = 'error';
12
13
    const CODEMAJOR_SUCCESS = 'success';
14
    const CODEMAJOR_PROCESSING = 'processing';
15
    const CODEMAJOR_FAILURE = 'failure';
16
    const CODEMAJOR_UNSUPPORTED = 'supported';
17
18
    /**
19
     * @var string
20
     */
21
    private $codeMajor = '';
22
23
    /**
24
     * @var string
25
     */
26
    private $severity = '';
27
28
    /**
29
     * @var string
30
     */
31
    private $messageRefIdentifier = '';
32
33
    /**
34
     * @var string
35
     */
36
    private $operationRefIdentifier = '';
37
38
    /**
39
     * @var string
40
     */
41
    private $description = '';
42
43
    /**
44
     * Get codeMajor.
45
     *
46
     * @return string
47
     */
48
    public function getCodeMajor()
49
    {
50
        return $this->codeMajor;
51
    }
52
53
    /**
54
     * Set codeMajor.
55
     *
56
     * @param string $codeMajor
57
     *
58
     * @return ImsLtiServiceResponseStatus
59
     */
60
    public function setCodeMajor($codeMajor)
61
    {
62
        $this->codeMajor = $codeMajor;
63
64
        return $this;
65
    }
66
67
    /**
68
     * Get severity.
69
     *
70
     * @return string
71
     */
72
    public function getSeverity()
73
    {
74
        return $this->severity;
75
    }
76
77
    /**
78
     * Set severity.
79
     *
80
     * @param string $severity
81
     *
82
     * @return ImsLtiServiceResponseStatus
83
     */
84
    public function setSeverity($severity)
85
    {
86
        $this->severity = $severity;
87
88
        return $this;
89
    }
90
91
    /**
92
     * Get messageRefIdentifier.
93
     *
94
     * @return int
95
     */
96
    public function getMessageRefIdentifier()
97
    {
98
        return $this->messageRefIdentifier;
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this->messageRefIdentifier returns the type string which is incompatible with the documented return type integer.
Loading history...
99
    }
100
101
    /**
102
     * Set messageRefIdentifier.
103
     *
104
     * @param int $messageRefIdentifier
105
     *
106
     * @return ImsLtiServiceResponseStatus
107
     */
108
    public function setMessageRefIdentifier($messageRefIdentifier)
109
    {
110
        $this->messageRefIdentifier = $messageRefIdentifier;
111
112
        return $this;
113
    }
114
115
    /**
116
     * Get operationRefIdentifier.
117
     *
118
     * @return int
119
     */
120
    public function getOperationRefIdentifier()
121
    {
122
        return $this->operationRefIdentifier;
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this->operationRefIdentifier returns the type string which is incompatible with the documented return type integer.
Loading history...
123
    }
124
125
    /**
126
     * Set operationRefIdentifier.
127
     *
128
     * @param int $operationRefIdentifier
129
     *
130
     * @return ImsLtiServiceResponseStatus
131
     */
132
    public function setOperationRefIdentifier($operationRefIdentifier)
133
    {
134
        $this->operationRefIdentifier = $operationRefIdentifier;
135
136
        return $this;
137
    }
138
139
    /**
140
     * Get description.
141
     *
142
     * @return string
143
     */
144
    public function getDescription()
145
    {
146
        return $this->description;
147
    }
148
149
    /**
150
     * Set description.
151
     *
152
     * @param string $description
153
     *
154
     * @return ImsLtiServiceResponseStatus
155
     */
156
    public function setDescription($description)
157
    {
158
        $this->description = $description;
159
160
        return $this;
161
    }
162
}
163