abstract.test 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. Abstract class
  2. -----
  3. <?php
  4. abstract class A {
  5. public function a() {}
  6. abstract public function b();
  7. }
  8. -----
  9. array(
  10. 0: Stmt_Class(
  11. attrGroups: array(
  12. )
  13. flags: MODIFIER_ABSTRACT (16)
  14. name: Identifier(
  15. name: A
  16. )
  17. extends: null
  18. implements: array(
  19. )
  20. stmts: array(
  21. 0: Stmt_ClassMethod(
  22. attrGroups: array(
  23. )
  24. flags: MODIFIER_PUBLIC (1)
  25. byRef: false
  26. name: Identifier(
  27. name: a
  28. )
  29. params: array(
  30. )
  31. returnType: null
  32. stmts: array(
  33. )
  34. )
  35. 1: Stmt_ClassMethod(
  36. attrGroups: array(
  37. )
  38. flags: MODIFIER_PUBLIC | MODIFIER_ABSTRACT (17)
  39. byRef: false
  40. name: Identifier(
  41. name: b
  42. )
  43. params: array(
  44. )
  45. returnType: null
  46. stmts: null
  47. )
  48. )
  49. )
  50. )