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