Total Complexity | 12 |
Total Lines | 63 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
6 | class NombreColumnaJoin |
||
7 | { |
||
8 | private $_tabla1; |
||
9 | private $_tabla2; |
||
10 | |||
11 | 6 | public function __construct(array $array) |
|
12 | { |
||
13 | 6 | $this->setDatos($array); |
|
14 | 3 | } |
|
15 | |||
16 | 2 | public function tabla1(): string |
|
17 | { |
||
18 | 2 | return $this->_tabla1; |
|
19 | } |
||
20 | |||
21 | 2 | public function tabla2(): string |
|
22 | { |
||
23 | 2 | return $this->_tabla2; |
|
24 | } |
||
25 | |||
26 | 6 | private function setDatos(array $array): void |
|
41 | } |
||
42 | 3 | } |
|
43 | |||
44 | 6 | private function estaVacioElArray(array $array): void |
|
45 | { |
||
46 | 6 | if(count($array) == 0) |
|
47 | { |
||
48 | 1 | throw new Exception("Error Processing Request"); |
|
49 | |||
50 | } |
||
51 | 5 | } |
|
52 | |||
53 | 4 | private function tieneMasValores(array $array): void |
|
58 | |||
59 | } |
||
60 | 3 | } |
|
61 | |||
62 | 5 | private function elStringEstaVacio(array $array): void |
|
69 | |||
70 | } |
||
73 | } |