Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
26 | 6 | private function setDatos(array $array): void |
|
27 | { |
||
28 | 6 | $this->estaVacioElArray($array); |
|
29 | 5 | $this->elStringEstaVacio($array); |
|
30 | 4 | $this->tieneMasValores($array); |
|
31 | |||
32 | 3 | if(count($array) == 1) |
|
33 | { |
||
34 | 2 | $this->_tabla1 = $array[0]; |
|
35 | 2 | $this->_tabla2 = $array[0]; |
|
36 | } |
||
37 | else |
||
38 | { |
||
39 | 1 | $this->_tabla1 = $array[0]; |
|
40 | 1 | $this->_tabla2 = $array[1]; |
|
41 | } |
||
73 | } |