Conditions | 5 |
Paths | 3 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 5 |
Changes | 0 |
1 | <?php |
||
38 | 64 | public function skipProperty(PropertyMetadataInterface $property, ContextInterface $context) |
|
39 | { |
||
40 | 64 | if ($property->hasSinceVersion() && version_compare($property->getSinceVersion(), $this->version, '>')) { |
|
41 | 16 | return true; |
|
42 | } |
||
43 | |||
44 | 64 | if ($property->hasUntilVersion() && version_compare($property->getUntilVersion(), $this->version, '<')) { |
|
45 | 16 | return true; |
|
46 | } |
||
47 | |||
48 | 64 | return false; |
|
49 | } |
||
50 | } |
||
51 |