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