mirror of
https://github.com/danog/PHP-Parser.git
synced 2024-12-02 17:28:27 +01:00
29 lines
703 B
PHP
29 lines
703 B
PHP
<?php
|
|
|
|
namespace PhpParser\Node\Expr;
|
|
|
|
use PhpParser\Node\Expr;
|
|
|
|
/**
|
|
* @property string $var Name of variable
|
|
* @property bool $byRef Whether to use by reference
|
|
*/
|
|
class ClosureUse extends 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
|
|
);
|
|
}
|
|
} |