Mercurial > hg > isophonics-drupal-site
annotate vendor/nikic/php-parser/lib/PhpParser/Node/FunctionLike.php @ 19:fa3358dc1485 tip
Add ndrum files
author | Chris Cannam |
---|---|
date | Wed, 28 Aug 2019 13:14:47 +0100 |
parents | 5fb285c0d0e3 |
children |
rev | line source |
---|---|
Chris@13 | 1 <?php declare(strict_types=1); |
Chris@0 | 2 |
Chris@0 | 3 namespace PhpParser\Node; |
Chris@0 | 4 |
Chris@0 | 5 use PhpParser\Node; |
Chris@0 | 6 |
Chris@0 | 7 interface FunctionLike extends Node |
Chris@0 | 8 { |
Chris@0 | 9 /** |
Chris@0 | 10 * Whether to return by reference |
Chris@0 | 11 * |
Chris@0 | 12 * @return bool |
Chris@0 | 13 */ |
Chris@13 | 14 public function returnsByRef() : bool; |
Chris@0 | 15 |
Chris@0 | 16 /** |
Chris@0 | 17 * List of parameters |
Chris@0 | 18 * |
Chris@0 | 19 * @return Node\Param[] |
Chris@0 | 20 */ |
Chris@13 | 21 public function getParams() : array; |
Chris@0 | 22 |
Chris@0 | 23 /** |
Chris@0 | 24 * Get the declared return type or null |
Chris@13 | 25 * |
Chris@13 | 26 * @return null|Identifier|Node\Name|Node\NullableType |
Chris@0 | 27 */ |
Chris@0 | 28 public function getReturnType(); |
Chris@0 | 29 |
Chris@0 | 30 /** |
Chris@0 | 31 * The function body |
Chris@0 | 32 * |
Chris@13 | 33 * @return Node\Stmt[]|null |
Chris@0 | 34 */ |
Chris@0 | 35 public function getStmts(); |
Chris@0 | 36 } |