1 | <?php |
||
11 | class Dto extends Singleton |
||
12 | { |
||
13 | |||
14 | /** |
||
15 | * ToArray wrapper |
||
16 | * @return array |
||
17 | */ |
||
18 | public function toArray() |
||
22 | |||
23 | /** |
||
24 | * Convert dto to array representation |
||
25 | * @return array |
||
26 | */ |
||
27 | public function __toArray() |
||
44 | |||
45 | /** |
||
46 | * Convert to string representation |
||
47 | * @return string |
||
48 | */ |
||
49 | public function __toString() |
||
53 | |||
54 | /** |
||
55 | * Hydrate object from array |
||
56 | * @param array $object |
||
57 | */ |
||
58 | public function fromArray(array $object = array()) |
||
68 | } |