mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-12-12 00:59:49 +01:00
70077039b4
Return magic constant name, e.g. __CLASS__. Resolves #95.
12 lines
187 B
PHP
12 lines
187 B
PHP
<?php
|
|
|
|
namespace PhpParser\Node\Scalar\MagicConst;
|
|
|
|
use PhpParser\Node\Scalar\MagicConst;
|
|
|
|
class Dir extends MagicConst
|
|
{
|
|
public function getName() {
|
|
return '__DIR__';
|
|
}
|
|
} |