FunctionLike.php 764 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 Param[]
  16. */
  17. public function getParams() : array;
  18. /**
  19. * Get the declared return type or null
  20. *
  21. * @return null|Identifier|Name|NullableType|UnionType
  22. */
  23. public function getReturnType();
  24. /**
  25. * The function body
  26. *
  27. * @return Stmt[]|null
  28. */
  29. public function getStmts();
  30. /**
  31. * Get PHP attribute groups.
  32. *
  33. * @return AttributeGroup[]
  34. */
  35. public function getAttrGroups() : array;
  36. }