Passed
Push — main ( df4185...84fd6f )
by Osvaldo
12:01
created

ConsultaJoin   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A obtener() 0 3 1
1
<?php
2
namespace src\pdodatabase\consultas\select;
3
4
use PDOStatement;
5
use src\pdodatabase\ejecutar\EjecutarConsultaSinDatos;
6
use src\pdodatabase\sentencias\select\SentenciaJoin;
7
8
class ConsultaJoin
9
{
10
    private $_ejecutar;
11
    private $_sentencia;
12
    
13
    public function __construct(EjecutarConsultaSinDatos $ejecutarConsultaSinDatos, SentenciaJoin $Join)
14
    {
15
        $this->_ejecutar = $ejecutarConsultaSinDatos;
16
        $this->_sentencia = $Join;
17
    }
18
19
    public function obtener(): PDOStatement
20
    {
21
        return $this->_ejecutar->query($this->_sentencia->sql());
22
    }
23
}