1
0
mirror of https://github.com/danog/PHP-Parser.git synced 2024-12-04 18:28:25 +01:00
PHP-Parser/test/code/parser/stmt/class/implicitPublic.test

78 lines
1.7 KiB
Plaintext
Raw Normal View History

Implicitly public properties and methods
-----
<?php
abstract class A {
var $a;
static $b;
abstract function c();
final function d() {}
static function e() {}
final static function f() {}
}
-----
array(
0: Stmt_Class(
type: 16
name: A
extends: null
implements: array(
)
stmts: array(
0: Stmt_Property(
type: 1
props: array(
0: Stmt_PropertyProperty(
name: a
default: null
)
)
)
1: Stmt_Property(
type: 9
props: array(
0: Stmt_PropertyProperty(
name: b
default: null
)
)
)
2: Stmt_ClassMethod(
type: 17
byRef: false
name: c
params: array(
)
stmts: null
)
3: Stmt_ClassMethod(
type: 33
byRef: false
name: d
params: array(
)
stmts: array(
)
)
4: Stmt_ClassMethod(
type: 9
byRef: false
name: e
params: array(
)
stmts: array(
)
)
5: Stmt_ClassMethod(
type: 41
byRef: false
name: f
params: array(
)
stmts: array(
)
)
)
)
)