Passed
Push — main ( e3dcf6...088d44 )
by Osvaldo
01:32
created

DondeOEntreConParametro::datos()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
namespace src\pdodatabase\elementos;
3
4
use src\interfaces\DondeOEntreInterface;
5
use src\interfaces\ElementoConParametroInterface;
6
7
class DondeOEntreConParametro
8
{
9
    private $_donde;
10
    private $_datos;
11
12
    public function __construct(DondeOEntreInterface $Donde, ElementoConParametroInterface $ElementosConParametro)
13
    {
14
        $this->_datos = $Donde->datos();
15
        $this->_donde = $this->setDonde($Donde,$ElementosConParametro);
16
    }
17
18
    public function donde(): string
19
    {
20
        return $this->_donde;
21
    }
22
23
    public function datos(): array
24
    {
25
        return $this->_datos;
26
    }
27
28
    private function setDonde($Donde,$elementosConParametro): string
29
    {
30
        return $Donde->donde().$elementosConParametro->parametro();
31
    }
32
}