2011-05-27 18:20:44 +02:00
|
|
|
<?php
|
|
|
|
|
2011-05-29 12:20:47 +02:00
|
|
|
/**
|
2011-08-14 18:26:06 +02:00
|
|
|
* @property array $stmts Statements
|
|
|
|
* @property PHPParser_Node_Stmt_FuncParam[] $params Parameters
|
|
|
|
* @property PHPParser_Node_Expr_LambdaFuncUse[] $uses use()s
|
|
|
|
* @property bool $byRef Whether to return by reference
|
2011-05-29 12:20:47 +02:00
|
|
|
*/
|
2011-06-05 18:40:04 +02:00
|
|
|
class PHPParser_Node_Expr_LambdaFunc extends PHPParser_Node_Expr
|
2011-05-27 18:20:44 +02:00
|
|
|
{
|
2011-08-14 18:26:06 +02:00
|
|
|
/**
|
|
|
|
* Constructs a lambda function node.
|
|
|
|
*
|
|
|
|
* @param array $stmts Statements
|
|
|
|
* @param PHPParser_Node_Stmt_FuncParam[] $params Parameters
|
|
|
|
* @param PHPParser_Node_Expr_LambdaFuncUse[] $uses use()s
|
|
|
|
* @param bool $byRef Whether to return by reference
|
|
|
|
* @param int $line Line
|
|
|
|
* @param null|string $docComment Nearest doc comment
|
|
|
|
*/
|
|
|
|
public function __construct(array $stmts, array $params = array(), $uses = array(), $byRef = false, $line = -1, $docComment = null) {
|
|
|
|
parent::__construct(
|
|
|
|
array(
|
|
|
|
'stmts' => $stmts,
|
|
|
|
'params' => $params,
|
|
|
|
'uses' => $uses,
|
|
|
|
'byRef' => $byRef
|
|
|
|
),
|
|
|
|
$line, $docComment
|
|
|
|
);
|
|
|
|
}
|
2011-05-27 18:20:44 +02:00
|
|
|
}
|