| Total Complexity | 3 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | trait PredicateTrait { |
||
| 9 | |||
| 10 | /** |
||
| 11 | * `$this IS FALSE` |
||
| 12 | * |
||
| 13 | * @return Predicate |
||
| 14 | */ |
||
| 15 | public function isFalse () { |
||
| 16 | return new Predicate("{$this} IS FALSE"); |
||
| 17 | } |
||
| 18 | |||
| 19 | /** |
||
| 20 | * `$this IS NOT NULL` |
||
| 21 | * |
||
| 22 | * @return Predicate |
||
| 23 | */ |
||
| 24 | public function isNotNull () { |
||
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * `$this IS NULL` |
||
| 30 | * |
||
| 31 | * @return Predicate |
||
| 32 | */ |
||
| 33 | public function isNull () { |
||
| 35 | } |
||
| 36 | } |