php-parser/lib/PhpParser/Node/Scalar/MagicConst/Method.php
nikic 70077039b4 Add Scalar\MagicConst->getName()
Return magic constant name, e.g. __CLASS__.

Resolves #95.
2014-02-21 18:16:18 +01:00

12 lines
193 B
PHP

<?php
namespace PhpParser\Node\Scalar\MagicConst;
use PhpParser\Node\Scalar\MagicConst;
class Method extends MagicConst
{
public function getName() {
return '__METHOD__';
}
}