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
|
|
|
|
*
|
|
|
|
* @return Node\Param[]
|
|
|
|
*/
|
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
|
|
|
*
|
2019-10-25 21:35:43 +02:00
|
|
|
* @return null|Identifier|Node\Name|Node\NullableType|Node\UnionType
|
2015-06-01 18:32:25 +02:00
|
|
|
*/
|
|
|
|
public function getReturnType();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The function body
|
|
|
|
*
|
2017-05-07 19:54:32 +02:00
|
|
|
* @return Node\Stmt[]|null
|
2015-06-01 18:32:25 +02:00
|
|
|
*/
|
2017-05-07 19:54:32 +02:00
|
|
|
public function getStmts();
|
2015-06-01 18:32:25 +02:00
|
|
|
}
|