PHP Class PhpParser\Node\Stmt\Function_

Inheritance: extends PhpParser\Node\Stmt, implements PhpParser\Node\FunctionLike
Afficher le fichier Open project: nikic/PHP-Parser Class Usage Examples

Méthodes publiques

Свойство Type Description
$byRef Whether function returns by reference
$name Name
$params Parameters
$returnType Return type
$stmts Statements

Méthodes publiques

Méthode Description
__construct ( string $name, array $subNodes = [], array $attributes = [] ) Constructs a function node.
getParams ( )
getReturnType ( )
getStmts ( )
getSubNodeNames ( )
returnsByRef ( )

Method Details

__construct() public méthode

Constructs a function node.
public __construct ( string $name, array $subNodes = [], array $attributes = [] )
$name string Name
$subNodes array Array of the following optional subnodes: 'byRef' => false : Whether to return by reference 'params' => array(): Parameters 'returnType' => null : Return type 'stmts' => array(): Statements
$attributes array Additional attributes

getParams() public méthode

public getParams ( )

getReturnType() public méthode

public getReturnType ( )

getStmts() public méthode

public getStmts ( )

getSubNodeNames() public méthode

public getSubNodeNames ( )

returnsByRef() public méthode

public returnsByRef ( )

Property Details

$byRef public_oe property

Whether function returns by reference
public $byRef

$name public_oe property

Name
public $name

$params public_oe property

Parameters
public $params

$returnType public_oe property

Return type
public $returnType

$stmts public_oe property

Statements
public $stmts