| 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): ConsultaUpdate |
|
| 17 | { |
||
| 18 | 1 | $conexion = new CrearConexionBaseDeDatos; |
|
| 19 | 1 | $conexion = $conexion->crear([]); |
|
| 20 | |||
| 21 | 1 | return new ConsultaUpdate( |
|
| 22 | 1 | new EjecutarConsultaConDatos( |
|
| 23 | 1 | $conexion |
|
| 24 | ), |
||
| 25 | 1 | new SentenciaUpdate( |
|
| 26 | 1 | new Tabla($array['tabla']), |
|
| 27 | 1 | new ElementoUpdate( |
|
| 28 | 1 | $array['valores'], |
|
| 29 | 1 | new WhereNotBetween( |
|
| 30 | 1 | new ValidadorDeParametrosWhereBetween($array['where']) |
|
| 31 | ) |
||
| 36 | } |