comparison vendor/nikic/php-parser/lib/PhpParser/Node/FunctionLike.php @ 0:c75dbcec494b

Initial commit from drush-created site
author Chris Cannam
date Thu, 05 Jul 2018 14:24:15 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:c75dbcec494b
1 <?php declare(strict_types=1);
2
3 namespace PhpParser\Node;
4
5 use PhpParser\Node;
6
7 interface FunctionLike extends Node
8 {
9 /**
10 * Whether to return by reference
11 *
12 * @return bool
13 */
14 public function returnsByRef() : bool;
15
16 /**
17 * List of parameters
18 *
19 * @return Node\Param[]
20 */
21 public function getParams() : array;
22
23 /**
24 * Get the declared return type or null
25 *
26 * @return null|Identifier|Node\Name|Node\NullableType
27 */
28 public function getReturnType();
29
30 /**
31 * The function body
32 *
33 * @return Node\Stmt[]|null
34 */
35 public function getStmts();
36 }