Chris@14: , Sebastian Heuer , Sebastian Bergmann Chris@14: * Chris@14: * For the full copyright and license information, please view the LICENSE Chris@14: * file that was distributed with this source code. Chris@14: */ Chris@14: Chris@14: namespace PharIo\Version; Chris@14: Chris@14: class VersionNumber { Chris@14: /** Chris@14: * @var int Chris@14: */ Chris@14: private $value; Chris@14: Chris@14: /** Chris@14: * @param mixed $value Chris@14: */ Chris@14: public function __construct($value) { Chris@14: if (is_numeric($value)) { Chris@14: $this->value = $value; Chris@14: } Chris@14: } Chris@14: Chris@14: /** Chris@14: * @return bool Chris@14: */ Chris@14: public function isAny() { Chris@14: return $this->value === null; Chris@14: } Chris@14: Chris@14: /** Chris@14: * @return int Chris@14: */ Chris@14: public function getValue() { Chris@14: return $this->value; Chris@14: } Chris@14: }