2015-06-01 18:32:25 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace PhpParser\Node;
|
|
|
|
|
|
|
|
use PhpParser\Node;
|
|
|
|
|
|
|
|
interface FunctionLike extends Node
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Whether to return by reference
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function returnsByRef();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* List of parameters
|
|
|
|
*
|
|
|
|
* @return Node\Param[]
|
|
|
|
*/
|
|
|
|
public function getParams();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the declared return type or null
|
|
|
|
*
|
2016-12-05 13:30:29 +01:00
|
|
|
* @return null|string|Node\Name|Node\NullableType
|
2015-06-01 18:32:25 +02:00
|
|
|
*/
|
|
|
|
public function getReturnType();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The function body
|
|
|
|
*
|
|
|
|
* @return Node\Stmt[]
|
|
|
|
*/
|
|
|
|
public function getStmts();
|
|
|
|
}
|