@@ 123-127 (lines=5) @@ | ||
120 | } |
|
121 | } |
|
122 | ||
123 | if ($aliases[$name]['propertyType'] == 'private') { |
|
124 | $object->{$aliases[$name]['methods']['setter']}($value); |
|
125 | } else { |
|
126 | $object->{$aliases[$name]['propertyName']} = $value; |
|
127 | } |
|
128 | } |
|
129 | ||
130 | return $object; |
|
@@ 155-159 (lines=5) @@ | ||
152 | ||
153 | // Variable $name defined in client. |
|
154 | foreach ($aliases as $name => $alias) { |
|
155 | if ($aliases[$name]['propertyType'] == 'private') { |
|
156 | $value = $object->{$aliases[$name]['methods']['getter']}(); |
|
157 | } else { |
|
158 | $value = $object->{$aliases[$name]['propertyName']}; |
|
159 | } |
|
160 | ||
161 | if (isset($value)) { |
|
162 | if (array_key_exists('aliases', $alias)) { |