2011-06-05 18:40:04 +02:00
|
|
|
<?php
|
|
|
|
|
2014-02-06 14:44:16 +01:00
|
|
|
namespace PhpParser\Node\Scalar;
|
|
|
|
|
|
|
|
use PhpParser\Node\Scalar;
|
|
|
|
|
|
|
|
abstract class MagicConst extends Scalar
|
2011-06-05 18:40:04 +02:00
|
|
|
{
|
2011-08-09 14:55:45 +02:00
|
|
|
/**
|
2014-02-06 14:44:16 +01:00
|
|
|
* Constructs a magic constant node.
|
2011-08-09 14:55:45 +02:00
|
|
|
*
|
2012-04-29 23:32:09 +02:00
|
|
|
* @param array $attributes Additional attributes
|
2011-08-09 14:55:45 +02:00
|
|
|
*/
|
2012-04-29 23:32:09 +02:00
|
|
|
public function __construct(array $attributes = array()) {
|
2015-05-02 22:17:34 +02:00
|
|
|
parent::__construct($attributes);
|
2015-02-28 18:44:28 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public function getSubNodeNames() {
|
|
|
|
return array();
|
2011-08-09 14:55:45 +02:00
|
|
|
}
|
2014-02-21 18:16:18 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Get name of magic constant.
|
|
|
|
*
|
|
|
|
* @return string Name of magic constant
|
|
|
|
*/
|
|
|
|
abstract public function getName();
|
2015-02-28 18:44:28 +01:00
|
|
|
}
|