1
0
mirror of https://github.com/danog/PHP-Parser.git synced 2024-12-02 17:28:27 +01:00
PHP-Parser/lib/PhpParser/Node/Arg.php

29 lines
684 B
PHP
Raw Normal View History

<?php
namespace PhpParser\Node;
use PhpParser\NodeAbstract;
/**
* @property Expr $value Value to pass
* @property bool $byRef Whether to pass by ref
*/
class Arg extends NodeAbstract
{
/**
* Constructs a function call argument node.
*
* @param Expr $value Value to pass
* @param bool $byRef Whether to pass by ref
* @param array $attributes Additional attributes
*/
public function __construct(Expr $value, $byRef = false, array $attributes = array()) {
parent::__construct(
array(
'value' => $value,
'byRef' => $byRef
),
$attributes
);
}
}