Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5962979
MatchNoneConstraint.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
MatchNoneConstraint.php
View Options
<?php
/*
* This file is part of composer/semver.
*
* (c) Composer <https://github.com/composer>
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace
Composer\Semver\Constraint
;
/**
* Blackhole of constraints, nothing escapes it
*/
class
MatchNoneConstraint
implements
ConstraintInterface
{
/** @var string|null */
protected
$prettyString
;
/**
* @param ConstraintInterface $provider
*
* @return bool
*/
public
function
matches
(
ConstraintInterface
$provider
)
{
return
false
;
}
/**
* {@inheritDoc}
*/
public
function
compile
(
$otherOperator
)
{
return
'false'
;
}
/**
* {@inheritDoc}
*/
public
function
setPrettyString
(
$prettyString
)
{
$this
->
prettyString
=
$prettyString
;
}
/**
* {@inheritDoc}
*/
public
function
getPrettyString
()
{
if
(
$this
->
prettyString
)
{
return
$this
->
prettyString
;
}
return
(
string
)
$this
;
}
/**
* {@inheritDoc}
*/
public
function
__toString
()
{
return
'[]'
;
}
/**
* {@inheritDoc}
*/
public
function
getUpperBound
()
{
return
new
Bound
(
'0.0.0.0-dev'
,
false
);
}
/**
* {@inheritDoc}
*/
public
function
getLowerBound
()
{
return
new
Bound
(
'0.0.0.0-dev'
,
false
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 09:18 (1 w, 3 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
d6/b7/f67e4fd1d17bb4601f761b344138
Default Alt Text
MatchNoneConstraint.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment