| 1 | <?php |
||
| 14 | class Version |
||
| 15 | { |
||
| 16 | /** @var string */ |
||
| 17 | private $name; |
||
| 18 | |||
| 19 | /** @var string */ |
||
| 20 | private $pretty; |
||
| 21 | |||
| 22 | /** @var string */ |
||
| 23 | private $fullPretty; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @param string $name |
||
| 27 | * @param string $pretty |
||
| 28 | * @param string $fullPretty |
||
| 29 | */ |
||
| 30 | 65 | public function __construct($name, $pretty, $fullPretty) |
|
| 36 | |||
| 37 | /** |
||
| 38 | * @return string |
||
| 39 | */ |
||
| 40 | 2 | public function getName() |
|
| 44 | |||
| 45 | /** |
||
| 46 | * @return string |
||
| 47 | */ |
||
| 48 | 45 | public function getPretty() |
|
| 52 | |||
| 53 | /** |
||
| 54 | * @return string |
||
| 55 | */ |
||
| 56 | 6 | public function getFullPretty() |
|
| 60 | |||
| 61 | /** |
||
| 62 | * Return whether the version is dev or not. |
||
| 63 | * |
||
| 64 | * @return string |
||
| 65 | */ |
||
| 66 | 23 | public function isDev() |
|
| 70 | } |
||
| 71 |