From aea3a9efe4222653f5970e6c98df61dc4f5cdde3 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Fri, 20 Jan 2017 23:45:54 +0100 Subject: [PATCH] Add @property annotations for namespacedName --- lib/PhpParser/Node/Const_.php | 3 +++ lib/PhpParser/Node/Stmt/ClassLike.php | 3 +++ lib/PhpParser/Node/Stmt/Function_.php | 3 +++ 3 files changed, 9 insertions(+) diff --git a/lib/PhpParser/Node/Const_.php b/lib/PhpParser/Node/Const_.php index 26322d4..dd2d95f 100644 --- a/lib/PhpParser/Node/Const_.php +++ b/lib/PhpParser/Node/Const_.php @@ -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 */ diff --git a/lib/PhpParser/Node/Stmt/ClassLike.php b/lib/PhpParser/Node/Stmt/ClassLike.php index e7ab00e..d00f1d2 100644 --- a/lib/PhpParser/Node/Stmt/ClassLike.php +++ b/lib/PhpParser/Node/Stmt/ClassLike.php @@ -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; diff --git a/lib/PhpParser/Node/Stmt/Function_.php b/lib/PhpParser/Node/Stmt/Function_.php index d8afb79..801c7a8 100644 --- a/lib/PhpParser/Node/Stmt/Function_.php +++ b/lib/PhpParser/Node/Stmt/Function_.php @@ -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 */