Methods
|
public
addParam
(
$param
)
Adds a parameter.
-
return
$this
The builder instance (for fluid interface)
|
public
addParams
(
array
$params
)
Adds multiple parameters.
-
return
$this
The builder instance (for fluid interface)
|
public
abstract
PhpParser\Builder\Declaration
::
addStmt
(
$stmt
) |
public
PhpParser\Builder\Declaration
::
addStmts
(
array
$stmts
)
Adds multiple statements.
-
return
$this
The builder instance (for fluid interface)
|
public
abstract
PhpParser\Builder
::
getNode
() :
PhpParser\Node
Returns the built node.
-
return
Node
The built node
|
public
makeReturnByRef
()
Make the function return by reference.
-
return
$this
The builder instance (for fluid interface)
|
public
PhpParser\Builder\Declaration
::
setDocComment
(
$docComment
)
Sets doc comment for the declaration.
-
return
$this
The builder instance (for fluid interface)
|
public
setReturnType
(
$type
)
Sets the return type for PHP 7.
-
return
$this
The builder instance (for fluid interface)
|