Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5977708
UseVariableName.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
902 B
Referenced Files
None
Subscribers
None
UseVariableName.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
;
use
Microsoft\PhpParser\Node
;
use
Microsoft\PhpParser\Token
;
class
UseVariableName
extends
Node
{
const
CHILD_NAMES
=
[
'byRef'
,
'variableName'
];
/** @var Token|null */
public
$byRef
;
/** @var Token */
public
$variableName
;
public
function
getName
()
{
if
(
$this
->
variableName
instanceof
Token
&&
$name
=
substr
(
$this
->
variableName
->
getText
(
$this
->
getFileContents
()),
1
)
)
{
return
$name
;
}
return
null
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 20:03 (3 d, 18 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
12/d3/b3317b0226c72adb2f1b1397ce91
Default Alt Text
UseVariableName.php (902 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment