view vendor/nikic/php-parser/test/code/parser/stmt/class/abstract.test @ 5:c69a71b4f40f

Add slideshow module
author Chris Cannam
date Thu, 07 Dec 2017 14:46:23 +0000
parents 4c8ae668cc8c
children 5fb285c0d0e3
line wrap: on
line source
Abstract class
-----
<?php

abstract class A {
    public function a() {}
    abstract public function b();
}
-----
array(
    0: Stmt_Class(
        flags: MODIFIER_ABSTRACT (16)
        name: A
        extends: null
        implements: array(
        )
        stmts: array(
            0: Stmt_ClassMethod(
                flags: MODIFIER_PUBLIC (1)
                byRef: false
                name: a
                params: array(
                )
                returnType: null
                stmts: array(
                )
            )
            1: Stmt_ClassMethod(
                flags: MODIFIER_PUBLIC | MODIFIER_ABSTRACT (17)
                byRef: false
                name: b
                params: array(
                )
                returnType: null
                stmts: null
            )
        )
    )
)