FunctionLike.php 640 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php declare(strict_types=1);
  2. namespace PhpParser\Node;
  3. use PhpParser\Node;
  4. interface FunctionLike extends Node
  5. {
  6. /**
  7. * Whether to return by reference
  8. *
  9. * @return bool
  10. */
  11. public function returnsByRef() : bool;
  12. /**
  13. * List of parameters
  14. *
  15. * @return Node\Param[]
  16. */
  17. public function getParams() : array;
  18. /**
  19. * Get the declared return type or null
  20. *
  21. * @return null|Identifier|Node\Name|Node\NullableType
  22. */
  23. public function getReturnType();
  24. /**
  25. * The function body
  26. *
  27. * @return Node\Stmt[]|null
  28. */
  29. public function getStmts();
  30. }