PHP Class PhpParser\Builder\Class_

Inheritance: extends Declaration
Afficher le fichier Open project: nikic/php-parser

Protected Properties

Свойство Type Description
$constants
$extends
$flags
$implements
$methods
$name
$properties
$uses

Méthodes publiques

Méthode Description
__construct ( string $name ) Creates a class builder.
addStmt ( PhpParser\Node\Stmt | PhpParser\Builder $stmt ) Adds a statement.
extend ( Name | string $class ) Extends a class.
getNode ( ) : Class_ Returns the built class node.
implement ( ) Implements one or more interfaces.
makeAbstract ( ) Makes the class abstract.
makeFinal ( ) Makes the class final.

Method Details

__construct() public méthode

Creates a class builder.
public __construct ( string $name )
$name string Name of the class

addStmt() public méthode

Adds a statement.
public addStmt ( PhpParser\Node\Stmt | PhpParser\Builder $stmt )
$stmt PhpParser\Node\Stmt | PhpParser\Builder The statement to add

extend() public méthode

Extends a class.
public extend ( Name | string $class )
$class PhpParser\Node\Name | string Name of class to extend

getNode() public méthode

Returns the built class node.
public getNode ( ) : Class_
Résultat PhpParser\Node\Stmt\Class_ The built class node

implement() public méthode

Implements one or more interfaces.
public implement ( )

makeAbstract() public méthode

Makes the class abstract.
public makeAbstract ( )

makeFinal() public méthode

Makes the class final.
public makeFinal ( )

Property Details

$constants protected_oe property

protected $constants

$extends protected_oe property

protected $extends

$flags protected_oe property

protected $flags

$implements protected_oe property

protected $implements

$methods protected_oe property

protected $methods

$name protected_oe property

protected $name

$properties protected_oe property

protected $properties

$uses protected_oe property

protected $uses