comparison vendor/nikic/php-parser/test/code/parser/stmt/class/implicitPublic.test @ 0:4c8ae668cc8c

Initial import (non-working)
author Chris Cannam
date Wed, 29 Nov 2017 16:09:58 +0000
parents
children 5fb285c0d0e3
comparison
equal deleted inserted replaced
-1:000000000000 0:4c8ae668cc8c
1 Implicitly public properties and methods
2 -----
3 <?php
4
5 abstract class A {
6 var $a;
7 static $b;
8 abstract function c();
9 final function d() {}
10 static function e() {}
11 final static function f() {}
12 function g() {}
13 }
14 -----
15 array(
16 0: Stmt_Class(
17 flags: MODIFIER_ABSTRACT (16)
18 name: A
19 extends: null
20 implements: array(
21 )
22 stmts: array(
23 0: Stmt_Property(
24 flags: 0
25 props: array(
26 0: Stmt_PropertyProperty(
27 name: a
28 default: null
29 )
30 )
31 )
32 1: Stmt_Property(
33 flags: MODIFIER_STATIC (8)
34 props: array(
35 0: Stmt_PropertyProperty(
36 name: b
37 default: null
38 )
39 )
40 )
41 2: Stmt_ClassMethod(
42 flags: MODIFIER_ABSTRACT (16)
43 byRef: false
44 name: c
45 params: array(
46 )
47 returnType: null
48 stmts: null
49 )
50 3: Stmt_ClassMethod(
51 flags: MODIFIER_FINAL (32)
52 byRef: false
53 name: d
54 params: array(
55 )
56 returnType: null
57 stmts: array(
58 )
59 )
60 4: Stmt_ClassMethod(
61 flags: MODIFIER_STATIC (8)
62 byRef: false
63 name: e
64 params: array(
65 )
66 returnType: null
67 stmts: array(
68 )
69 )
70 5: Stmt_ClassMethod(
71 flags: MODIFIER_STATIC | MODIFIER_FINAL (40)
72 byRef: false
73 name: f
74 params: array(
75 )
76 returnType: null
77 stmts: array(
78 )
79 )
80 6: Stmt_ClassMethod(
81 flags: 0
82 byRef: false
83 name: g
84 params: array(
85 )
86 returnType: null
87 stmts: array(
88 )
89 )
90 )
91 )
92 )