菜谱项目

FunctionLike.php 592B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  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();
  12. /**
  13. * List of parameters
  14. *
  15. * @return Node\Param[]
  16. */
  17. public function getParams();
  18. /**
  19. * Get the declared return type or null
  20. *
  21. * @return null|string|Node\Name|Node\NullableType
  22. */
  23. public function getReturnType();
  24. /**
  25. * The function body
  26. *
  27. * @return Node\Stmt[]
  28. */
  29. public function getStmts();
  30. }