Conditions | 4 |
Paths | 3 |
Total Lines | 13 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 4 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
28 | 36 | public static function setAllPossibleProperties($oData, $oTarget) |
|
29 | { |
||
30 | 36 | foreach($oData as $attrName => $attrValue) |
|
31 | { |
||
32 | // dont set array or objects. |
||
33 | // Because this would need further type information to properly set. |
||
34 | 27 | if (is_array($attrValue) || is_object($attrValue)) |
|
35 | 27 | { |
|
36 | 21 | continue; |
|
37 | } |
||
38 | 17 | self::setPropertyIfExist($oData, $oTarget, $attrName); |
|
39 | 36 | } |
|
40 | } |
||
41 | } |