@@ 119-123 (lines=5) @@ | ||
116 | } |
|
117 | } |
|
118 | ||
119 | if ($aliases[$name]['propertyType'] == 'private') { |
|
120 | $object->{$aliases[$name]['methods']['setter']}($value); |
|
121 | } else { |
|
122 | $object->{$aliases[$name]['propertyName']} = $value; |
|
123 | } |
|
124 | } |
|
125 | ||
126 | return $object; |
|
@@ 151-155 (lines=5) @@ | ||
148 | ||
149 | // Variable $name defined in client. |
|
150 | foreach ($aliases as $name => $alias) { |
|
151 | if ($aliases[$name]['propertyType'] == 'private') { |
|
152 | $value = $object->{$aliases[$name]['methods']['getter']}(); |
|
153 | } else { |
|
154 | $value = $object->{$aliases[$name]['propertyName']}; |
|
155 | } |
|
156 | ||
157 | if (isset($value)) { |
|
158 | if (array_key_exists('aliases', $alias)) { |