Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F1432478
Variable.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
937 B
Referenced Files
None
Subscribers
None
Variable.php
View Options
<?php
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
namespace
Microsoft\PhpParser\Node\Expression
;
use
Microsoft\PhpParser\Node\Expression
;
use
Microsoft\PhpParser\Token
;
class
Variable
extends
Expression
{
/** @var Token */
public
$dollar
;
/** @var Token|Variable|BracedExpression */
public
$name
;
const
CHILD_NAMES
=
[
'dollar'
,
'name'
];
public
function
getName
()
{
if
(
$this
->
name
instanceof
Token
&&
$name
=
ltrim
(
$this
->
name
->
getText
(
$this
->
getFileContents
()),
'$'
)
)
{
return
$name
;
}
return
null
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, May 16, 21:49 (1 d, 4 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
8c/a2/7a711b8923662ae92b375af182fa
Default Alt Text
Variable.php (937 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment