Page MenuHomeWickedGov Phorge

SpecificMajorVersionConstraint.php
No OneTemporary

Size
762 B
Referenced Files
None
Subscribers
None

SpecificMajorVersionConstraint.php

<?php declare(strict_types = 1);
/*
* This file is part of PharIo\Version.
*
* (c) Arne Blankerts <arne@blankerts.de>, Sebastian Heuer <sebastian@phpeople.de>, Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PharIo\Version;
class SpecificMajorVersionConstraint extends AbstractVersionConstraint {
/** @var int */
private $major;
public function __construct(string $originalValue, int $major) {
parent::__construct($originalValue);
$this->major = $major;
}
public function complies(Version $version): bool {
return $version->getMajor()->getValue() === $this->major;
}
}

File Metadata

Mime Type
text/x-php
Expires
Sun, Oct 4, 00:30 (3 w, 2 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
53/74/0593616e33aeccc024540d2c5f64
Default Alt Text
SpecificMajorVersionConstraint.php (762 B)

Event Timeline