This repository has been archived on 2025-08-22. You can view files and clone it, but cannot push or open issues or pull requests.
Files
dumbo/vendor/nikic/php-parser/lib/PHPParser/Node/Expr/ClosureUse.php
2014-11-25 16:42:40 +01:00

25 lines
680 B
PHP

<?php
/**
* @property string $var Name of variable
* @property bool $byRef Whether to use by reference
*/
class PHPParser_Node_Expr_ClosureUse extends PHPParser_Node_Expr
{
/**
* Constructs a closure use node.
*
* @param string $var Name of variable
* @param bool $byRef Whether to use by reference
* @param array $attributes Additional attributes
*/
public function __construct($var, $byRef = false, array $attributes = array()) {
parent::__construct(
array(
'var' => $var,
'byRef' => $byRef
),
$attributes
);
}
}