1 | <?php |
||
21 | class PayloadImmutable implements PayloadInterface |
||
22 | { |
||
23 | /** |
||
24 | * |
||
25 | * The payload status. |
||
26 | * |
||
27 | * @var mixed |
||
28 | * |
||
29 | */ |
||
30 | private $status; |
||
31 | |||
32 | /** |
||
33 | * |
||
34 | * The domain input. |
||
35 | * |
||
36 | * @var mixed |
||
37 | * |
||
38 | */ |
||
39 | private $input; |
||
40 | |||
41 | /** |
||
42 | * |
||
43 | * The domain output. |
||
44 | * |
||
45 | * @var mixed |
||
46 | * |
||
47 | */ |
||
48 | private $output; |
||
49 | |||
50 | /** |
||
51 | * |
||
52 | * Messages reported by the domain. |
||
53 | * |
||
54 | * @var mixed |
||
55 | * |
||
56 | */ |
||
57 | private $messages; |
||
58 | |||
59 | /** |
||
60 | * |
||
61 | * Arbitrary extra information from the domain. |
||
62 | * |
||
63 | * @var mixed |
||
64 | * |
||
65 | */ |
||
66 | private $extras; |
||
67 | |||
68 | /** |
||
69 | * |
||
70 | * Sets the payload status. |
||
71 | * |
||
72 | * @param mixed $status The payload status. |
||
73 | * |
||
74 | * @return self |
||
75 | * |
||
76 | */ |
||
77 | 3 | public function setStatus($status) |
|
84 | |||
85 | /** |
||
86 | * |
||
87 | * Gets the payload status. |
||
88 | * |
||
89 | * @return mixed |
||
90 | * |
||
91 | */ |
||
92 | 3 | public function getStatus() |
|
96 | |||
97 | /** |
||
98 | * |
||
99 | * Sets the domain input. |
||
100 | * |
||
101 | * @param mixed $input The domain input. |
||
102 | * |
||
103 | * @return self |
||
104 | * |
||
105 | */ |
||
106 | 3 | public function setInput($input) |
|
113 | |||
114 | /** |
||
115 | * |
||
116 | * Gets the domain input. |
||
117 | * |
||
118 | * @return mixed |
||
119 | * |
||
120 | */ |
||
121 | 1 | public function getInput() |
|
125 | |||
126 | /** |
||
127 | * |
||
128 | * Sets the domain output. |
||
129 | * |
||
130 | * @param mixed $output The domain output. |
||
131 | * |
||
132 | * @return self |
||
133 | * |
||
134 | */ |
||
135 | 1 | public function setOutput($output) |
|
142 | |||
143 | /** |
||
144 | * |
||
145 | * Gets the domain output. |
||
146 | * |
||
147 | * @return mixed |
||
148 | * |
||
149 | */ |
||
150 | 1 | public function getOutput() |
|
154 | |||
155 | /** |
||
156 | * |
||
157 | * Sets the domain messages. |
||
158 | * |
||
159 | * @param mixed $messages The domain messages. |
||
160 | * |
||
161 | * @return self |
||
162 | * |
||
163 | */ |
||
164 | 1 | public function setMessages($messages) |
|
171 | |||
172 | /** |
||
173 | * |
||
174 | * Gets the domain messages. |
||
175 | * |
||
176 | * @return mixed |
||
177 | * |
||
178 | */ |
||
179 | 1 | public function getMessages() |
|
183 | |||
184 | /** |
||
185 | * |
||
186 | * Sets arbitrary extra domain information. |
||
187 | * |
||
188 | * @param mixed $extras The domain extras. |
||
189 | * |
||
190 | * @return self |
||
191 | * |
||
192 | */ |
||
193 | 1 | public function setExtras($extras) |
|
200 | |||
201 | /** |
||
202 | * |
||
203 | * Gets the arbitrary extra domain information. |
||
204 | * |
||
205 | * @return mixed |
||
206 | * |
||
207 | */ |
||
208 | 1 | public function getExtras() |
|
212 | |||
213 | /** |
||
214 | * Deep clone all properties |
||
215 | */ |
||
216 | 3 | protected function __clone() |
|
224 | |||
225 | /** |
||
226 | * Return a cloned property |
||
227 | * |
||
228 | * @param $property |
||
229 | * |
||
230 | * @return mixed |
||
231 | */ |
||
232 | 3 | protected function deepClone($property) |
|
249 | } |
||
250 |