Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5982492
ConstStub.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
740 B
Referenced Files
None
Subscribers
None
ConstStub.php
View Options
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace
Symfony\Component\VarDumper\Caster
;
use
Symfony\Component\VarDumper\Cloner\Stub
;
/**
* Represents a PHP constant and its value.
*
* @author Nicolas Grekas <p@tchwork.com>
*/
class
ConstStub
extends
Stub
{
public
function
__construct
(
string
$name
,
string
|
int
|
float
|
null
$value
=
null
)
{
$this
->
class
=
$name
;
$this
->
value
=
1
<
\func_num_args
()
?
$value
:
$name
;
}
public
function
__toString
():
string
{
return
(
string
)
$this
->
value
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 22:23 (1 w, 3 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
f5/ec/c3744139aaa1b9e60c5ef18b9718
Default Alt Text
ConstStub.php (740 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment