Total Complexity | 14 |
Total Lines | 70 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class ValidadorDeParametrosWhereAndOthers implements ValidadorDeParametrosInterface |
||
8 | { |
||
9 | private $_operadoresValidos = [ |
||
10 | '=', |
||
11 | '>', |
||
12 | '<', |
||
13 | '>=', |
||
14 | '<=', |
||
15 | '<>', |
||
16 | '!=', |
||
17 | '!<', |
||
18 | '!>', |
||
19 | 'LIKE', |
||
20 | 'IN', |
||
21 | ]; |
||
22 | |||
23 | private $_datos; |
||
24 | |||
25 | 10 | public function __construct(array $datos) |
|
26 | { |
||
27 | 10 | $this->_datos = $this->setDatos($datos); |
|
28 | 6 | } |
|
29 | |||
30 | 6 | public function datos(): array |
|
31 | { |
||
32 | 6 | return $this->_datos; |
|
33 | } |
||
34 | |||
35 | 10 | private function setDatos($array): array |
|
43 | } |
||
44 | |||
45 | 9 | private function contieneValoresVacios($array): void |
|
52 | } |
||
53 | } |
||
54 | 8 | } |
|
55 | |||
56 | 8 | private function columnasSonString($array): void |
|
61 | } |
||
62 | 7 | } |
|
63 | |||
64 | 10 | private function numeroDeElementosValido($array): void |
|
69 | } |
||
70 | 9 | } |
|
71 | |||
72 | 7 | private function operadorValido($array): void |
|
80 | } |