| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 33 | public function create(Specification $spec, QueryBuilder $qb) |
||
| 34 | { |
||
| 35 | if (!$spec instanceof Not) { |
||
| 36 | throw new \InvalidArgumentException(); |
||
| 37 | } |
||
| 38 | |||
| 39 | $factory = $this->registry->getFactory($spec->getWrappedSpecification()); |
||
| 40 | |||
| 41 | return $qb->expr()->not( |
||
| 42 | $factory->create($spec->getWrappedSpecification(), $qb) |
||
| 43 | ); |
||
| 44 | } |
||
| 45 | } |
||
| 46 |