Passed
Push — main ( 88fc44...465bfc )
by Osvaldo
01:43
created

CrearConsulta   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
c 1
b 0
f 0
dl 0
loc 9
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A crear() 0 7 1
1
<?php
2
namespace src\pdoDataBase\consulta;
3
4
use src\FactoryClassInterface;
5
6
class CrearConsulta implements FactoryClassInterface
7
{
8
    public function crear(array $array): Consulta
9
    {
10
        return new Consulta(
11
            $array['conexion'],
12
            new Query(
13
                $array['sql'],
14
                $array['valores']
15
            )            
16
        );
17
    }
18
}