| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 97 | 11 | private function setValor(string $string): string |
|
| 98 | { |
||
| 99 | 11 | if (array_key_exists($string, $this->_valores)) { |
|
| 100 | 11 | return $string; |
|
| 101 | } |
||
| 102 | |||
| 103 | 3 | if (in_array($string, $this->_valores)) { |
|
| 104 | 1 | return $string; |
|
| 105 | } |
||
| 106 | |||
| 107 | 2 | throw new InvalidArgumentException("El tipo de valor para la pregunta es incorrecto"); |
|
| 108 | } |
||
| 110 |