Total Complexity | 3 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class WhereAndNot implements WhereAndOthersInterface |
||
9 | { |
||
10 | private $_where; |
||
11 | private $_sentencia; |
||
12 | |||
13 | public function __construct(WhereInterface $whereInterface, SentenciaDeComparacionInterface $SentenciaDeComparacionInterface) |
||
14 | { |
||
15 | $this->_where = $whereInterface; |
||
16 | $this->_sentencia = $SentenciaDeComparacionInterface; |
||
17 | } |
||
18 | |||
19 | public function sql(): string |
||
20 | { |
||
21 | return $this->_where->sql().' AND NOT '.$this->_sentencia->sql(); |
||
22 | } |
||
23 | |||
24 | public function datos(): array |
||
30 | } |
||
31 | } |