@@ -48,6 +48,9 @@ |
||
| 48 | 48 | return $result; |
| 49 | 49 | } |
| 50 | 50 | |
| 51 | + /** |
|
| 52 | + * @param string $propertyName |
|
| 53 | + */ |
|
| 51 | 54 | private function assignPropertyValue(ReflectionMethod $method, $destObject, $object, $propertyName) { |
| 52 | 55 | if (property_exists($object, $propertyName)) { |
| 53 | 56 | $property = $object->$propertyName; |
@@ -81,7 +81,7 @@ |
||
| 81 | 81 | $this->assignPropertyValue($method, $res, $result, $propertyName); |
| 82 | 82 | } |
| 83 | 83 | } |
| 84 | - if( $isResult ) { |
|
| 84 | + if ($isResult) { |
|
| 85 | 85 | $queryResult->addResult($res); |
| 86 | 86 | } |
| 87 | 87 | else { |
@@ -50,14 +50,16 @@ |
||
| 50 | 50 | return $result; |
| 51 | 51 | } |
| 52 | 52 | |
| 53 | - private function assignPropertyValue(ReflectionMethod $method, $destObject, $object, $propertyName) { |
|
| 53 | + private function assignPropertyValue(ReflectionMethod $method, $destObject, $object, $propertyName) |
|
| 54 | + { |
|
| 54 | 55 | if (property_exists($object, $propertyName)) { |
| 55 | 56 | $property = $object->$propertyName; |
| 56 | 57 | $method->invoke($destObject, $property); |
| 57 | 58 | } |
| 58 | 59 | } |
| 59 | 60 | |
| 60 | - private function getPropertyName(ReflectionMethod $method) { |
|
| 61 | + private function getPropertyName(ReflectionMethod $method) |
|
| 62 | + { |
|
| 61 | 63 | $propertyName = false; |
| 62 | 64 | if (substr($method->name, 0, 3) === 'set') { |
| 63 | 65 | $propertyName = substr($method->name, 3); |