PHP Class PhpParser\Node\Stmt\Class_

Inheritance: extends PhpParser\Node\Stmt
Afficher le fichier Open project: nikic/php-parser Class Usage Examples

Méthodes publiques

Свойство Type Description
$extends Name of extended class
$flags Type
$implements Names of implemented interfaces
$type

Protected Properties

Свойство Type Description
$specialNames

Méthodes publiques

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

Method Details

__construct() public méthode

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 méthode

public getSubNodeNames ( )

isAbstract() public méthode

public isAbstract ( )

isAnonymous() public méthode

public isAnonymous ( )

isFinal() public méthode

public isFinal ( )

verifyModifier() public static méthode

public static verifyModifier ( $a, $b )

Property Details

$extends public_oe property

Name of extended class
public $extends

$flags public_oe property

Type
public $flags

$implements public_oe property

Names of implemented interfaces
public $implements

$specialNames protected_oe static_oe property

protected static $specialNames

$type public_oe property

Deprecation: Use $flags instead
public $type