Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7436457
Const_.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
972 B
Referenced Files
None
Subscribers
None
Const_.php
View Options
<?php
declare
(
strict_types
=
1
);
namespace
PhpParser\Node
;
use
PhpParser\NodeAbstract
;
class
Const_
extends
NodeAbstract
{
/** @var Identifier Name */
public
$name
;
/** @var Expr Value */
public
$value
;
/** @var Name|null Namespaced name (if using NameResolver) */
public
$namespacedName
;
/**
* Constructs a const node for use in class const and const statements.
*
* @param string|Identifier $name Name
* @param Expr $value Value
* @param array $attributes Additional attributes
*/
public
function
__construct
(
$name
,
Expr
$value
,
array
$attributes
=
[])
{
$this
->
attributes
=
$attributes
;
$this
->
name
=
\is_string
(
$name
)
?
new
Identifier
(
$name
)
:
$name
;
$this
->
value
=
$value
;
}
public
function
getSubNodeNames
()
:
array
{
return
[
'name'
,
'value'
];
}
public
function
getType
()
:
string
{
return
'Const'
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Nov 22, 13:27 (3 h, 59 m ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
81/93/1dc4c8df86be18e6545e56ac31ef
Default Alt Text
Const_.php (972 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment