| Total Complexity | 6 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class Operador implements UnidadDeValorInterface |
||
| 8 | { |
||
| 9 | private $_operadoresValidos = [ |
||
| 10 | '=', |
||
| 11 | '>', |
||
| 12 | '<', |
||
| 13 | '>=', |
||
| 14 | '<=', |
||
| 15 | '<>', |
||
| 16 | '!=', |
||
| 17 | '!<', |
||
| 18 | '!>', |
||
| 19 | 'LIKE', |
||
| 20 | 'IN', |
||
| 21 | ]; |
||
| 22 | |||
| 23 | public function __construct(string $operador) |
||
| 24 | { |
||
| 25 | $this->operadorVacio($operador); |
||
| 26 | $this->operadorValido($operador); |
||
| 27 | $this->_operador = $operador; |
||
|
|
|||
| 28 | } |
||
| 29 | |||
| 30 | public function valor(): string |
||
| 31 | { |
||
| 32 | return $this->_operador; |
||
| 33 | } |
||
| 34 | |||
| 35 | private function operadorVacio(string $operador) |
||
| 40 | } |
||
| 41 | } |
||
| 42 | |||
| 43 | private function operadorValido(string $operador) |
||
| 50 | } |