| 1 | <?php |
||
| 12 | class Dto extends Singleton |
||
| 13 | { |
||
| 14 | |||
| 15 | /** |
||
| 16 | * ToArray wrapper |
||
| 17 | * @return array |
||
| 18 | */ |
||
| 19 | public function toArray() |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Convert dto to array representation |
||
| 26 | * @return array |
||
| 27 | */ |
||
| 28 | public function __toArray() |
||
| 50 | |||
| 51 | /** |
||
| 52 | * Convert to string representation |
||
| 53 | * @return string |
||
| 54 | */ |
||
| 55 | public function __toString() |
||
| 59 | |||
| 60 | /** |
||
| 61 | * Hydrate object from array |
||
| 62 | * @param array $object |
||
| 63 | */ |
||
| 64 | public function fromArray(array $object = array()) |
||
| 74 | } |