mirror of
https://github.com/danog/PHP-Parser.git
synced 2024-12-13 09:57:25 +01:00
70077039b4
Return magic constant name, e.g. __CLASS__. Resolves #95.
24 lines
495 B
PHP
24 lines
495 B
PHP
<?php
|
|
|
|
namespace PhpParser\Node\Scalar;
|
|
|
|
use PhpParser\Node\Scalar;
|
|
|
|
abstract class MagicConst extends Scalar
|
|
{
|
|
/**
|
|
* Constructs a magic constant node.
|
|
*
|
|
* @param array $attributes Additional attributes
|
|
*/
|
|
public function __construct(array $attributes = array()) {
|
|
parent::__construct(array(), $attributes);
|
|
}
|
|
|
|
/**
|
|
* Get name of magic constant.
|
|
*
|
|
* @return string Name of magic constant
|
|
*/
|
|
abstract public function getName();
|
|
} |