php-parser/lib/PhpParser/Node/FunctionLike.php

44 lines
753 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 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|Name|ComplexType
*/
public function getReturnType();
/**
* The function body
*
* @return Stmt[]|null
*/
2017-05-07 19:54:32 +02:00
public function getStmts();
/**
* Get PHP attribute groups.
*
* @return AttributeGroup[]
*/
public function getAttrGroups() : array;
}