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 | 3 | private function getSerialized( BetweenQuery $query ) { |
|
37 | 3 | $text = 'between[' . $query->getPropertyId()->getNumericId() . ','; |
|
38 | |||
39 | 3 | if ( $query->getBeginValue() !== null ) { |
|
40 | 2 | $text .= $query->getBeginValue()->getTime(); |
|
41 | 2 | } |
|
42 | 3 | if ( $query->getEndValue() !== null ) { |
|
43 | 2 | $text .= ',' . $query->getEndValue()->getTime(); |
|
44 | 2 | } |
|
45 | |||
46 | 3 | return $text . ']'; |
|
47 | } |
||
48 | } |
||
49 |