implicitPublic.test 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. Implicitly public properties and methods
  2. -----
  3. <?php
  4. abstract class A {
  5. var $a;
  6. static $b;
  7. abstract function c();
  8. final function d() {}
  9. static function e() {}
  10. final static function f() {}
  11. function g() {}
  12. }
  13. -----
  14. array(
  15. 0: Stmt_Class(
  16. flags: MODIFIER_ABSTRACT (16)
  17. name: Identifier(
  18. name: A
  19. )
  20. extends: null
  21. implements: array(
  22. )
  23. stmts: array(
  24. 0: Stmt_Property(
  25. flags: 0
  26. type: null
  27. props: array(
  28. 0: Stmt_PropertyProperty(
  29. name: VarLikeIdentifier(
  30. name: a
  31. )
  32. default: null
  33. )
  34. )
  35. )
  36. 1: Stmt_Property(
  37. flags: MODIFIER_STATIC (8)
  38. type: null
  39. props: array(
  40. 0: Stmt_PropertyProperty(
  41. name: VarLikeIdentifier(
  42. name: b
  43. )
  44. default: null
  45. )
  46. )
  47. )
  48. 2: Stmt_ClassMethod(
  49. flags: MODIFIER_ABSTRACT (16)
  50. byRef: false
  51. name: Identifier(
  52. name: c
  53. )
  54. params: array(
  55. )
  56. returnType: null
  57. stmts: null
  58. )
  59. 3: Stmt_ClassMethod(
  60. flags: MODIFIER_FINAL (32)
  61. byRef: false
  62. name: Identifier(
  63. name: d
  64. )
  65. params: array(
  66. )
  67. returnType: null
  68. stmts: array(
  69. )
  70. )
  71. 4: Stmt_ClassMethod(
  72. flags: MODIFIER_STATIC (8)
  73. byRef: false
  74. name: Identifier(
  75. name: e
  76. )
  77. params: array(
  78. )
  79. returnType: null
  80. stmts: array(
  81. )
  82. )
  83. 5: Stmt_ClassMethod(
  84. flags: MODIFIER_STATIC | MODIFIER_FINAL (40)
  85. byRef: false
  86. name: Identifier(
  87. name: f
  88. )
  89. params: array(
  90. )
  91. returnType: null
  92. stmts: array(
  93. )
  94. )
  95. 6: Stmt_ClassMethod(
  96. flags: 0
  97. byRef: false
  98. name: Identifier(
  99. name: g
  100. )
  101. params: array(
  102. )
  103. returnType: null
  104. stmts: array(
  105. )
  106. )
  107. )
  108. )
  109. )