Total Complexity | 8 |
Total Lines | 44 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
8 | final class ParamBuilder |
||
9 | { |
||
10 | /** |
||
11 | * Sanitize and build params. |
||
12 | * |
||
13 | * @param array $params |
||
14 | * |
||
15 | * @return string |
||
16 | */ |
||
17 | public static function build($params) |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * If the given value is not an array and not null, wrap it in one. |
||
39 | * And typehint all values to integer. Primarily used for ids. |
||
40 | * |
||
41 | * @param $value |
||
42 | * |
||
43 | * @return array |
||
44 | */ |
||
45 | protected static function wrap($value) |
||
54 |