| 1 | <?php |
||
| 20 | final class ComparatorVersion implements VersionRangeInterface |
||
| 21 | { |
||
| 22 | /** @var ComparatorInterface */ |
||
| 23 | private $comparator; |
||
| 24 | |||
| 25 | /** @var VersionInterface */ |
||
| 26 | private $version; |
||
| 27 | |||
| 28 | |||
| 29 | /** |
||
| 30 | * Constructor. |
||
| 31 | * |
||
| 32 | * @param ComparatorInterface $comparator |
||
| 33 | * @param VersionInterface $version |
||
| 34 | */ |
||
| 35 | 2 | public function __construct(ComparatorInterface $comparator, VersionInterface $version) |
|
| 40 | |||
| 41 | /** |
||
| 42 | * {@inheritDoc} |
||
| 43 | */ |
||
| 44 | 1 | public function isSatisfiedBy(VersionInterface $version) |
|
| 48 | |||
| 49 | /** |
||
| 50 | * {@inheritDoc} |
||
| 51 | */ |
||
| 52 | 1 | public function __toString() |
|
| 56 | } |
||
| 57 |