File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33namespace Permafrost \PhpCodeSearch \Results \Nodes ;
44
5- use Permafrost \PhpCodeSearch \Code \GenericCodeLocation ;
65use Permafrost \PhpCodeSearch \Results \Nodes \Traits \BootsTraits ;
76use Permafrost \PhpCodeSearch \Results \Nodes \Traits \HasLocation ;
87use Permafrost \PhpCodeSearch \Results \Nodes \Traits \HasName ;
8+ use Permafrost \PhpCodeSearch \Support \Collections \Collection ;
9+ use Permafrost \PhpCodeSearch \Support \NameResolver ;
910use Permafrost \PhpCodeSearch \Support \StatementTransformer ;
1011use PhpParser \Node ;
1112
@@ -21,10 +22,16 @@ class ClassDefinitionNode implements ResultNode
2122 /** @var array|ResultNode[]|ValueNode[] */
2223 public $ methods ;
2324
25+ public $ implements ;
26+
27+ public $ extends ;
28+
2429 public function __construct (Node \Stmt \Class_ $ node )
2530 {
2631 $ this ->bootTraits ($ node );
2732
33+ $ this ->extends = NameResolver::resolve ($ node ->extends );
34+ $ this ->implements = NameResolver::resolveAll ($ node ->implements );
2835 $ this ->properties = StatementTransformer::parserNodesToResultNode ($ node ->getProperties ());
2936 $ this ->methods = StatementTransformer::parserNodesToResultNode ($ node ->getMethods ());
3037 }
You can’t perform that action at this time.
0 commit comments