1 | <?php |
||
17 | final class Label implements LabelInterface |
||
18 | { |
||
19 | /** @var int */ |
||
20 | private $precedence; |
||
21 | |||
22 | /** @var int|null */ |
||
23 | private $version; |
||
24 | |||
25 | /** @var string */ |
||
26 | private $name; |
||
27 | |||
28 | |||
29 | /** |
||
30 | * Constructor. |
||
31 | * |
||
32 | * @param int $precedence |
||
33 | * @param int|null $version |
||
34 | * @param string $name |
||
35 | */ |
||
36 | 11 | public function __construct($precedence, $version = null, $name = '') |
|
53 | |||
54 | /** |
||
55 | * {@inheritDoc} |
||
56 | */ |
||
57 | 6 | public function getPrecedence() |
|
61 | |||
62 | /** |
||
63 | * {@inheritDoc} |
||
64 | */ |
||
65 | 11 | public function getName() |
|
69 | |||
70 | /** |
||
71 | * {@inheritDoc} |
||
72 | */ |
||
73 | 11 | public function getVersion() |
|
77 | |||
78 | /** |
||
79 | * {@inheritDoc} |
||
80 | */ |
||
81 | 11 | public function __toString() |
|
91 | } |
||
92 |