| 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 Param[] |
| 20 |
*/ |
| 21 |
public function getParams() : array; |
| 22 |
|
| 23 |
/** |
| 24 |
* Get the declared return type or null |
| 25 |
* |
| 26 |
* @return null|Identifier|Name|ComplexType |
| 27 |
*/ |
| 28 |
public function getReturnType(); |
| 29 |
|
| 30 |
/** |
| 31 |
* The function body |
| 32 |
* |
| 33 |
* @return Stmt[]|null |
| 34 |
*/ |
| 35 |
public function getStmts(); |
| 36 |
|
| 37 |
/** |
| 38 |
* Get PHP attribute groups. |
| 39 |
* |
| 40 |
* @return AttributeGroup[] |
| 41 |
*/ |
| 42 |
public function getAttrGroups() : array; |
| 43 |
} |
| 44 |
|