Mercurial > hg > isophonics-drupal-site
comparison vendor/phar-io/version/src/VersionNumber.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
13:5fb285c0d0e3 | 14:1fec387a4317 |
---|---|
1 <?php | |
2 /* | |
3 * This file is part of PharIo\Version. | |
4 * | |
5 * (c) Arne Blankerts <arne@blankerts.de>, Sebastian Heuer <sebastian@phpeople.de>, Sebastian Bergmann <sebastian@phpunit.de> | |
6 * | |
7 * For the full copyright and license information, please view the LICENSE | |
8 * file that was distributed with this source code. | |
9 */ | |
10 | |
11 namespace PharIo\Version; | |
12 | |
13 class VersionNumber { | |
14 /** | |
15 * @var int | |
16 */ | |
17 private $value; | |
18 | |
19 /** | |
20 * @param mixed $value | |
21 */ | |
22 public function __construct($value) { | |
23 if (is_numeric($value)) { | |
24 $this->value = $value; | |
25 } | |
26 } | |
27 | |
28 /** | |
29 * @return bool | |
30 */ | |
31 public function isAny() { | |
32 return $this->value === null; | |
33 } | |
34 | |
35 /** | |
36 * @return int | |
37 */ | |
38 public function getValue() { | |
39 return $this->value; | |
40 } | |
41 } |