PHP Class PhpParser\Builder\Trait_

Inheritance: extends Declaration
显示文件 Open project: nikic/php-parser

Protected Properties

Property Type Description
$methods
$name
$properties

Public Methods

Method Description
__construct ( string $name ) Creates an interface builder.
addStmt ( PhpParser\Node\Stmt | PhpParser\Builder $stmt ) Adds a statement.
getNode ( ) : Trait_ Returns the built trait node.

Method Details

__construct() public method

Creates an interface builder.
public __construct ( string $name )
$name string Name of the interface

addStmt() public method

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

getNode() public method

Returns the built trait node.
public getNode ( ) : Trait_
return PhpParser\Node\Stmt\Trait_ The built interface node

Property Details

$methods protected_oe property

protected $methods

$name protected_oe property

protected $name

$properties protected_oe property

protected $properties