From 89f866d8b8bd1be96293f93932aebc2267a48b88 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Fri, 20 Dec 2024 10:11:09 +0700 Subject: [PATCH] Add getOriginalNode() method on ClassPropertyNode --- src/Node/ClassPropertyNode.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Node/ClassPropertyNode.php b/src/Node/ClassPropertyNode.php index c8602aef79..b214b9eeba 100644 --- a/src/Node/ClassPropertyNode.php +++ b/src/Node/ClassPropertyNode.php @@ -129,6 +129,11 @@ public function getNativeTypeNode() return $this->originalNode->type; } + public function getOriginalNode(): Node\Stmt\Property|Node\Param + { + return $this->originalNode; + } + public function getClassReflection(): ClassReflection { return $this->classReflection;