php-parser/lib/PHPParser/Node/Arg.php

25 lines
740 B
PHP
Raw Normal View History

2011-06-05 18:40:04 +02:00
<?php
/**
* @property PHPParser_Node_Expr $value Value to pass
* @property bool $byRef Whether to pass by ref
2011-06-05 18:40:04 +02:00
*/
class PHPParser_Node_Arg extends PHPParser_NodeAbstract
2011-06-05 18:40:04 +02:00
{
/**
* Constructs a function call argument node.
*
* @param PHPParser_Node_Expr $value Value to pass
* @param bool $byRef Whether to pass by ref
* @param array $attributes Additional attributes
*/
public function __construct(PHPParser_Node_Expr $value, $byRef = false, array $attributes = array()) {
parent::__construct(
array(
'value' => $value,
'byRef' => $byRef
),
$attributes
);
}
2011-06-05 18:40:04 +02:00
}