1 | <?php |
||
20 | final class ComparatorVersion implements VersionRangeInterface |
||
21 | { |
||
22 | /** |
||
23 | * @var ComparatorInterface |
||
24 | */ |
||
25 | private $comparator; |
||
26 | |||
27 | /** |
||
28 | * @var VersionInterface |
||
29 | */ |
||
30 | private $version; |
||
31 | |||
32 | |||
33 | /** |
||
34 | * Constructor. |
||
35 | * |
||
36 | * @param ComparatorInterface $comparator |
||
37 | * @param VersionInterface $version |
||
38 | */ |
||
39 | 3 | public function __construct(ComparatorInterface $comparator, VersionInterface $version) |
|
44 | |||
45 | /** |
||
46 | * {@inheritDoc} |
||
47 | */ |
||
48 | 1 | public function isSatisfiedBy(VersionInterface $version) |
|
52 | |||
53 | /** |
||
54 | * {@inheritDoc} |
||
55 | */ |
||
56 | 1 | public function __toString() |
|
60 | |||
61 | /** |
||
62 | * Get the comparator. |
||
63 | * |
||
64 | * @todo Remove this hack - temporary mechanism to allow for extraction of comparator info |
||
65 | * |
||
66 | * @return ComparatorInterface |
||
67 | */ |
||
68 | 1 | public function getComparator() |
|
72 | |||
73 | /** |
||
74 | * Get the version. |
||
75 | * |
||
76 | * @todo Remove this hack - temporary mechanism to allow for extraction of version info |
||
77 | * |
||
78 | * @return VersionInterface |
||
79 | */ |
||
80 | 1 | public function getVersion() |
|
84 | } |
||
85 |