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