1
0
mirror of https://github.com/danog/PHP-Parser.git synced 2024-12-02 17:28:27 +01:00
PHP-Parser/lib/PhpParser/Node/FunctionLike.php

37 lines
655 B
PHP
Raw Normal View History

2017-08-18 22:57:27 +02:00
<?php declare(strict_types=1);
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;
/**
* List of parameters
*
* @return Node\Param[]
*/
2017-04-28 21:40:59 +02:00
public function getParams() : array;
/**
* Get the declared return type or null
2017-08-13 14:16:40 +02:00
*
* @return null|Identifier|Node\Name|Node\NullableType|Node\UnionType
*/
public function getReturnType();
/**
* The function body
*
2017-05-07 19:54:32 +02:00
* @return Node\Stmt[]|null
*/
2017-05-07 19:54:32 +02:00
public function getStmts();
}