mirror of
https://github.com/danog/PHP-Parser.git
synced 2024-12-15 10:57:11 +01:00
1c11626f0a
Rather than automatically deriving getType() from the class name.
18 lines
496 B
PHP
18 lines
496 B
PHP
<?php declare(strict_types=1);
|
|
|
|
namespace PhpParser\Node;
|
|
|
|
/**
|
|
* Represents a name that is written in source code with a leading dollar,
|
|
* but is not a proper variable. The leading dollar is not stored as part of the name.
|
|
*
|
|
* Examples: Names in property declarations are formatted as variables. Names in static property
|
|
* lookups are also formatted as variables.
|
|
*/
|
|
class VarLikeIdentifier extends Identifier
|
|
{
|
|
function getType() : string {
|
|
return 'VarLikeIdentifier';
|
|
}
|
|
}
|