1 | <?php |
||
11 | class ArrayParameter implements IPreprocessor |
||
12 | { |
||
13 | const PARAM_INT_ARRAY = 101; |
||
14 | const PARAM_STR_ARRAY = 102; |
||
15 | |||
16 | /** @var Numeric */ |
||
17 | protected $numeric; |
||
18 | |||
19 | /** @var Associative */ |
||
20 | protected $assocative; |
||
21 | |||
22 | /** |
||
23 | * Preprocessor constructor. |
||
24 | * |
||
25 | * @param Numeric $numeric |
||
26 | * @param Associative $associative |
||
27 | */ |
||
28 | 5 | public function __construct(Numeric $numeric, Associative $associative) |
|
33 | |||
34 | /** |
||
35 | * @param string $query |
||
36 | * @param array $parameters |
||
37 | */ |
||
38 | 5 | public function process(string &$query, array &$parameters) |
|
48 | |||
49 | /** |
||
50 | * @param array $parameters |
||
51 | * |
||
52 | * @return array |
||
53 | */ |
||
54 | 5 | private function getWhereInParameters(array $parameters) |
|
69 | } |
||
70 |