Copied!
CloneableInstantiable
Methods
public __construct(string $name)
 

Creates a function builder.

public addAttribute( $attribute)
 

Adds an attribute group.

public PhpParser\Builder\FunctionLike::addParam( $param)
 

Adds a parameter.

public PhpParser\Builder\FunctionLike::addParams(array $params)
 

Adds multiple parameters.

public addStmt( $stmt)
 

Adds a statement.

public PhpParser\Builder\Declaration::addStmts(array $stmts)
 

Adds multiple statements.

public getNode() : PhpParser\Node
 

Returns the built function node.

public PhpParser\Builder\FunctionLike::makeReturnByRef()
 

Make the function return by reference.

public PhpParser\Builder\Declaration::setDocComment( $docComment)
 

Sets doc comment for the declaration.

public PhpParser\Builder\FunctionLike::setReturnType( $type)
 

Sets the return type for PHP 7.

Properties
protected $attributeGroups
protected PhpParser\Builder\Declaration::$attributes
protected $name
protected PhpParser\Builder\FunctionLike::$params
protected PhpParser\Builder\FunctionLike::$returnByRef
protected PhpParser\Builder\FunctionLike::$returnType
protected $stmts
© 2023 Bruce Wells
Search Namespaces \ Classes
Configuration