Няма описание

FunctionLike.php 753B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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|ComplexType
  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. }