Total Complexity | 3 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
5 | trait ASTNodeTrait |
||
6 | { |
||
7 | /** |
||
8 | * @var ?NodeInterface |
||
9 | */ |
||
10 | protected $astNode; |
||
11 | |||
12 | /** |
||
13 | * @return bool |
||
14 | */ |
||
15 | public function hasAstNode(): bool |
||
18 | } |
||
19 | |||
20 | /** |
||
21 | * @return NodeInterface|null |
||
22 | */ |
||
23 | public function getAstNode(): ?NodeInterface |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * @param NodeInterface|null $astNode |
||
30 | * @return $this |
||
31 | */ |
||
32 | protected function setAstNode(?NodeInterface $astNode) |
||
38 |