PHP Class PhpParser\Node\Stmt\Class_

Inheritance: extends PhpParser\Node\Stmt
Show file Open project: nikic/php-parser Class Usage Examples

Public Properties

Property Type Description
$extends Name of extended class
$flags Type
$implements Names of implemented interfaces
$type

Protected Properties

Property Type Description
$specialNames

Public Methods

Method Description
__construct ( string | null $name, array $subNodes = [], array $attributes = [] ) Constructs a class node.
getSubNodeNames ( )
isAbstract ( )
isAnonymous ( )
isFinal ( )
verifyModifier ( $a, $b )

Method Details

__construct() public method

Constructs a class node.
public __construct ( string | null $name, array $subNodes = [], array $attributes = [] )
$name string | null Name
$subNodes array Array of the following optional subnodes: 'flags' => 0 : Flags 'extends' => null : Name of extended class 'implements' => array(): Names of implemented interfaces 'stmts' => array(): Statements
$attributes array Additional attributes

getSubNodeNames() public method

public getSubNodeNames ( )

isAbstract() public method

public isAbstract ( )

isAnonymous() public method

public isAnonymous ( )

isFinal() public method

public isFinal ( )

verifyModifier() public static method

public static verifyModifier ( $a, $b )

Property Details

$extends public property

Name of extended class
public $extends

$flags public property

Type
public $flags

$implements public property

Names of implemented interfaces
public $implements

$specialNames protected static property

protected static $specialNames

$type public property

Deprecation: Use $flags instead
public $type