Conditions | 1 |
Paths | 1 |
Total Lines | 22 |
Code Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Tests | 15 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | 1 | public function crear(array $array): ConsultaSelectWhereOrdenOLimite |
|
20 | { |
||
21 | 1 | $conexion = new CrearConexionBaseDeDatos; |
|
22 | 1 | $conexion = $conexion->crear([]); |
|
23 | |||
24 | 1 | return new ConsultaSelectWhereOrdenOLimite( |
|
25 | 1 | new EjecutarConsultaConDatos( |
|
26 | 1 | $conexion |
|
27 | ), |
||
28 | 1 | new SentenciaSelectWhereOrdenOLimite( |
|
29 | 1 | new CamposYTabla( |
|
30 | 1 | new Campos($array['campos']), |
|
31 | 1 | new Tabla($array['tabla']) |
|
32 | ), |
||
33 | 1 | new Como( |
|
34 | 1 | new WhereAnd( |
|
35 | 1 | new ValidadorDeParametrosWhereAndOthers( |
|
36 | 1 | $array['where'] |
|
37 | ) |
||
38 | ) |
||
39 | ), |
||
40 | 1 | new Limite($array['limit']) |
|
41 | ) |
||
44 | } |