implicitPublic.test 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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. attrGroups: array(
  17. )
  18. flags: MODIFIER_ABSTRACT (16)
  19. name: Identifier(
  20. name: A
  21. )
  22. extends: null
  23. implements: array(
  24. )
  25. stmts: array(
  26. 0: Stmt_Property(
  27. attrGroups: array(
  28. )
  29. flags: 0
  30. type: null
  31. props: array(
  32. 0: Stmt_PropertyProperty(
  33. name: VarLikeIdentifier(
  34. name: a
  35. )
  36. default: null
  37. )
  38. )
  39. )
  40. 1: Stmt_Property(
  41. attrGroups: array(
  42. )
  43. flags: MODIFIER_STATIC (8)
  44. type: null
  45. props: array(
  46. 0: Stmt_PropertyProperty(
  47. name: VarLikeIdentifier(
  48. name: b
  49. )
  50. default: null
  51. )
  52. )
  53. )
  54. 2: Stmt_ClassMethod(
  55. attrGroups: array(
  56. )
  57. flags: MODIFIER_ABSTRACT (16)
  58. byRef: false
  59. name: Identifier(
  60. name: c
  61. )
  62. params: array(
  63. )
  64. returnType: null
  65. stmts: null
  66. )
  67. 3: Stmt_ClassMethod(
  68. attrGroups: array(
  69. )
  70. flags: MODIFIER_FINAL (32)
  71. byRef: false
  72. name: Identifier(
  73. name: d
  74. )
  75. params: array(
  76. )
  77. returnType: null
  78. stmts: array(
  79. )
  80. )
  81. 4: Stmt_ClassMethod(
  82. attrGroups: array(
  83. )
  84. flags: MODIFIER_STATIC (8)
  85. byRef: false
  86. name: Identifier(
  87. name: e
  88. )
  89. params: array(
  90. )
  91. returnType: null
  92. stmts: array(
  93. )
  94. )
  95. 5: Stmt_ClassMethod(
  96. attrGroups: array(
  97. )
  98. flags: MODIFIER_STATIC | MODIFIER_FINAL (40)
  99. byRef: false
  100. name: Identifier(
  101. name: f
  102. )
  103. params: array(
  104. )
  105. returnType: null
  106. stmts: array(
  107. )
  108. )
  109. 6: Stmt_ClassMethod(
  110. attrGroups: array(
  111. )
  112. flags: 0
  113. byRef: false
  114. name: Identifier(
  115. name: g
  116. )
  117. params: array(
  118. )
  119. returnType: null
  120. stmts: array(
  121. )
  122. )
  123. )
  124. )
  125. )