Mercurial > hg > isophonics-drupal-site
annotate vendor/nikic/php-parser/test/code/parser/stmt/class/php4Style.test @ 1:1a348b17ec81
Logo and header background
author | Chris Cannam |
---|---|
date | Thu, 30 Nov 2017 14:56:35 +0000 |
parents | 4c8ae668cc8c |
children | 5fb285c0d0e3 |
rev | line source |
---|---|
Chris@0 | 1 PHP 4 style declarations |
Chris@0 | 2 ----- |
Chris@0 | 3 <?php |
Chris@0 | 4 |
Chris@0 | 5 class A { |
Chris@0 | 6 var $foo; |
Chris@0 | 7 function bar() {} |
Chris@0 | 8 static abstract function baz() {} |
Chris@0 | 9 } |
Chris@0 | 10 ----- |
Chris@0 | 11 array( |
Chris@0 | 12 0: Stmt_Class( |
Chris@0 | 13 flags: 0 |
Chris@0 | 14 name: A |
Chris@0 | 15 extends: null |
Chris@0 | 16 implements: array( |
Chris@0 | 17 ) |
Chris@0 | 18 stmts: array( |
Chris@0 | 19 0: Stmt_Property( |
Chris@0 | 20 flags: 0 |
Chris@0 | 21 props: array( |
Chris@0 | 22 0: Stmt_PropertyProperty( |
Chris@0 | 23 name: foo |
Chris@0 | 24 default: null |
Chris@0 | 25 ) |
Chris@0 | 26 ) |
Chris@0 | 27 ) |
Chris@0 | 28 1: Stmt_ClassMethod( |
Chris@0 | 29 flags: 0 |
Chris@0 | 30 byRef: false |
Chris@0 | 31 name: bar |
Chris@0 | 32 params: array( |
Chris@0 | 33 ) |
Chris@0 | 34 returnType: null |
Chris@0 | 35 stmts: array( |
Chris@0 | 36 ) |
Chris@0 | 37 ) |
Chris@0 | 38 2: Stmt_ClassMethod( |
Chris@0 | 39 flags: MODIFIER_ABSTRACT | MODIFIER_STATIC (24) |
Chris@0 | 40 byRef: false |
Chris@0 | 41 name: baz |
Chris@0 | 42 params: array( |
Chris@0 | 43 ) |
Chris@0 | 44 returnType: null |
Chris@0 | 45 stmts: array( |
Chris@0 | 46 ) |
Chris@0 | 47 ) |
Chris@0 | 48 ) |
Chris@0 | 49 ) |
Chris@0 | 50 ) |