1 | <?php |
||
6 | abstract class Struct |
||
7 | { |
||
8 | public function __set($property, $value) |
||
9 | { |
||
10 | throw new \Exception("Try to set an undeclared property '$property'."); |
||
11 | } |
||
12 | |||
13 | /** |
||
14 | * Initialize list of scalar properties by response. |
||
15 | * |
||
16 | * @param \SimpleXMLElement $apiResponse |
||
17 | * @param array $properties |
||
18 | * |
||
19 | * @throws \Exception |
||
20 | */ |
||
21 | protected function _initScalarProperties($apiResponse, array $properties) |
||
49 | |||
50 | /** |
||
51 | * Convert underscore separated words into camel case. |
||
52 | * |
||
53 | * @param string $under |
||
54 | * |
||
55 | * @return string |
||
56 | */ |
||
57 | private function _underToCamel($under) |
||
63 | } |
||
64 |