Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5987632
SpecificMajorVersionConstraint.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
762 B
Referenced Files
None
Subscribers
None
SpecificMajorVersionConstraint.php
View Options
<?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
Details
Attached
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)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment