Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
32 | public function addFilterConstraint(ClassMetadata $targetEntity, $targetTableAlias) |
||
33 | { |
||
34 | if ($targetEntity->reflClass->getName() === 'Eccube\Entity\ProductClass') { |
||
35 | return $targetTableAlias . '.stock >= 1 OR ' . $targetTableAlias . '.stock_unlimited = 1'; |
||
36 | } else { |
||
37 | return ""; |
||
38 | } |
||
39 | } |
||
40 | } |
||
41 |