| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 12 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | 1 | public function crear(array $array): ConsultaDelete |
|
| 17 | { |
||
| 18 | 1 | $conexion = new CrearConexionBaseDeDatos; |
|
| 19 | 1 | $conexion = $conexion->crear([]); |
|
| 20 | |||
| 21 | 1 | return new ConsultaDelete( |
|
| 22 | 1 | new EjecutarConsultaConDatos( |
|
| 23 | 1 | $conexion |
|
| 24 | ), |
||
| 25 | 1 | new SentenciaDelete( |
|
| 26 | 1 | new ElementoDelete( |
|
| 27 | 1 | new Tabla($array['tabla']), |
|
| 28 | 1 | new WhereAnd( |
|
| 29 | 1 | new ValidadorDeParametrosWhereAndOthers( |
|
| 30 | 1 | $array['where'] |
|
| 31 | ) |
||
| 37 | } |