1 | <?php |
||
10 | class Helper |
||
11 | { |
||
12 | /** |
||
13 | * Initialize an object with a given array of parameters |
||
14 | * |
||
15 | * Parameters are automatically converted to camelCase. Any parameters which do |
||
16 | * not match a setter on the target object are ignored. |
||
17 | * |
||
18 | * @param Object $target The object to set parameters on |
||
19 | * @param array $parameters An array of parameters to set |
||
20 | */ |
||
21 | 42 | public static function initialize($target, $parameters) |
|
32 | |||
33 | /** |
||
34 | * Convert a string to camelCase. Strings already in camelCase will not be harmed. |
||
35 | * |
||
36 | * @param string $str The input string |
||
37 | * @return string camelCased output string |
||
38 | */ |
||
39 | 36 | public static function camelCase($str) |
|
49 | } |
||
50 |