Conditions | 3 |
Paths | 4 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 3 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
36 | 2 | private function getSerialized( QuantityQuery $query ) { |
|
37 | 2 | $text = 'quantity[' . $query->getPropertyId()->getNumericId() . ','; |
|
38 | |||
39 | 2 | if ( $query->getLowerValue() !== null ) { |
|
40 | 2 | $text .= $query->getLowerValue()->getValue(); |
|
41 | 2 | } |
|
42 | 2 | if ( $query->getUpperValue() !== null ) { |
|
43 | 1 | $text .= ',' . $query->getUpperValue()->getValue(); |
|
44 | 1 | } |
|
45 | |||
46 | 2 | return $text . ']'; |
|
47 | } |
||
48 | } |
||
49 |