Add @property annotations for namespacedName

This commit is contained in:
Nikita Popov 2017-01-20 23:45:54 +01:00
parent 414adfb146
commit aea3a9efe4
3 changed files with 9 additions and 0 deletions

View File

@ -4,6 +4,9 @@ namespace PhpParser\Node;
use PhpParser\NodeAbstract;
/**
* @property Name $namespacedName Namespaced name (for class constants, if using NameResolver)
*/
class Const_ extends NodeAbstract
{
/** @var string Name */

View File

@ -4,6 +4,9 @@ namespace PhpParser\Node\Stmt;
use PhpParser\Node;
/**
* @property Node\Name $namespacedName Namespaced name (if using NameResolver)
*/
abstract class ClassLike extends Node\Stmt {
/** @var string|null Name */
public $name;

View File

@ -5,6 +5,9 @@ namespace PhpParser\Node\Stmt;
use PhpParser\Node;
use PhpParser\Node\FunctionLike;
/**
* @property Node\Name $namespacedName Namespaced name (if using NameResolver)
*/
class Function_ extends Node\Stmt implements FunctionLike
{
/** @var bool Whether function returns by reference */