php4Style.test 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. PHP 4 style declarations
  2. -----
  3. <?php
  4. class A {
  5. var $foo;
  6. function bar() {}
  7. static abstract function baz() {}
  8. }
  9. -----
  10. array(
  11. 0: Stmt_Class(
  12. attrGroups: array(
  13. )
  14. flags: 0
  15. name: Identifier(
  16. name: A
  17. )
  18. extends: null
  19. implements: array(
  20. )
  21. stmts: array(
  22. 0: Stmt_Property(
  23. attrGroups: array(
  24. )
  25. flags: 0
  26. type: null
  27. props: array(
  28. 0: Stmt_PropertyProperty(
  29. name: VarLikeIdentifier(
  30. name: foo
  31. )
  32. default: null
  33. )
  34. )
  35. )
  36. 1: Stmt_ClassMethod(
  37. attrGroups: array(
  38. )
  39. flags: 0
  40. byRef: false
  41. name: Identifier(
  42. name: bar
  43. )
  44. params: array(
  45. )
  46. returnType: null
  47. stmts: array(
  48. )
  49. )
  50. 2: Stmt_ClassMethod(
  51. attrGroups: array(
  52. )
  53. flags: MODIFIER_ABSTRACT | MODIFIER_STATIC (24)
  54. byRef: false
  55. name: Identifier(
  56. name: baz
  57. )
  58. params: array(
  59. )
  60. returnType: null
  61. stmts: array(
  62. )
  63. )
  64. )
  65. )
  66. )