d574e02082062532729341102712cba4dd96535e
[yaffs-website] / vendor / nikic / php-parser / lib / PhpParser / Node / FunctionLike.php
1 <?php declare(strict_types=1);
2
3 namespace PhpParser\Node;
4
5 use PhpParser\Node;
6
7 interface FunctionLike extends Node
8 {
9     /**
10      * Whether to return by reference
11      *
12      * @return bool
13      */
14     public function returnsByRef() : bool;
15
16     /**
17      * List of parameters
18      *
19      * @return Node\Param[]
20      */
21     public function getParams() : array;
22
23     /**
24      * Get the declared return type or null
25      *
26      * @return null|Identifier|Node\Name|Node\NullableType
27      */
28     public function getReturnType();
29
30     /**
31      * The function body
32      *
33      * @return Node\Stmt[]|null
34      */
35     public function getStmts();
36 }