2017-08-18 22:57:27 +02:00
|
|
|
<?php declare(strict_types=1);
|
2015-06-01 18:32:25 +02:00
|
|
|
|
|
|
|
namespace PhpParser\Node;
|
|
|
|
|
|
|
|
use PhpParser\Node;
|
|
|
|
|
|
|
|
interface FunctionLike extends Node
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Whether to return by reference
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
2017-04-28 21:40:59 +02:00
|
|
|
public function returnsByRef() : bool;
|
2015-06-01 18:32:25 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* List of parameters
|
|
|
|
*
|
2020-09-13 21:01:17 +02:00
|
|
|
* @return Param[]
|
2015-06-01 18:32:25 +02:00
|
|
|
*/
|
2017-04-28 21:40:59 +02:00
|
|
|
public function getParams() : array;
|
2015-06-01 18:32:25 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the declared return type or null
|
2017-08-13 14:16:40 +02:00
|
|
|
*
|
2021-09-02 18:35:05 +02:00
|
|
|
* @return null|Identifier|Name|ComplexType
|
2015-06-01 18:32:25 +02:00
|
|
|
*/
|
|
|
|
public function getReturnType();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The function body
|
|
|
|
*
|
2020-09-13 21:01:17 +02:00
|
|
|
* @return Stmt[]|null
|
2015-06-01 18:32:25 +02:00
|
|
|
*/
|
2017-05-07 19:54:32 +02:00
|
|
|
public function getStmts();
|
2020-09-13 21:01:17 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Get PHP attribute groups.
|
|
|
|
*
|
|
|
|
* @return AttributeGroup[]
|
|
|
|
*/
|
|
|
|
public function getAttrGroups() : array;
|
2015-06-01 18:32:25 +02:00
|
|
|
}
|