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

ConsultaJoin::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 2
dl 0
loc 4
rs 10
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
}