Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F6113227
IntegerRange.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
IntegerRange.php
View Options
<?php
declare
(
strict_types
=
1
);
/**
* This file is part of phpDocumentor.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @link http://phpdoc.org
*/
namespace
phpDocumentor\Reflection\PseudoTypes
;
use
phpDocumentor\Reflection\PseudoType
;
use
phpDocumentor\Reflection\Type
;
use
phpDocumentor\Reflection\Types\Integer
;
/**
* Value Object representing the type 'int'.
*
* @psalm-immutable
*/
final
class
IntegerRange
extends
Integer
implements
PseudoType
{
/** @var string */
private
$minValue
;
/** @var string */
private
$maxValue
;
public
function
__construct
(
string
$minValue
,
string
$maxValue
)
{
$this
->
minValue
=
$minValue
;
$this
->
maxValue
=
$maxValue
;
}
public
function
underlyingType
():
Type
{
return
new
Integer
();
}
public
function
getMinValue
():
string
{
return
$this
->
minValue
;
}
public
function
getMaxValue
():
string
{
return
$this
->
maxValue
;
}
/**
* Returns a rendered output of the Type as it would be used in a DocBlock.
*/
public
function
__toString
():
string
{
return
'int<'
.
$this
->
minValue
.
', '
.
$this
->
maxValue
.
'>'
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Oct 6 2026, 21:25 (6 w, 3 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
74/9e/9e0291113ddeb902a8366a30a04d
Default Alt Text
IntegerRange.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment