| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 13 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | 1 | public function crear(array $array): ConsultaSelectOrdenYLimite |
|
| 19 | { |
||
| 20 | 1 | $conexion = new CrearConexionBaseDeDatos; |
|
| 21 | 1 | $conexion = $conexion->crear([]); |
|
| 22 | |||
| 23 | 1 | return new ConsultaSelectOrdenYLimite( |
|
| 24 | 1 | new EjecutarConsultaSinDatos( |
|
| 25 | 1 | $conexion |
|
| 26 | ), |
||
| 27 | 1 | new SentenciaSelectOrdenYLimite( |
|
| 28 | 1 | new CamposYTabla( |
|
| 29 | 1 | new Campos($array['campos']), |
|
| 30 | 1 | new Tabla($array['tabla']) |
|
| 31 | ), |
||
| 32 | 1 | new OrdenYLimite( |
|
| 33 | 1 | new Orden($array['order']), |
|
| 34 | 1 | new Limite($array['limit']) |
|
| 35 | ) |
||
| 39 | } |