1 | <?php |
||
4 | class Response |
||
5 | { |
||
6 | /** |
||
7 | * @var string the serialized data of the response |
||
8 | */ |
||
9 | public $data; |
||
10 | |||
11 | /** |
||
12 | * @var string the representation to be used |
||
13 | */ |
||
14 | public $representation; |
||
15 | |||
16 | /** |
||
17 | * @param string $data |
||
18 | * @param string $representation |
||
19 | */ |
||
20 | public function __construct($data, $representation) |
||
25 | |||
26 | /** |
||
27 | * convert object to string (return the data) |
||
28 | * @return string |
||
29 | */ |
||
30 | public function __toString() |
||
34 | } |
||
35 |