mirror of
https://github.com/danog/PHP-Parser.git
synced 2024-11-27 12:24:39 +01:00
26 lines
799 B
PHP
26 lines
799 B
PHP
<?php
|
|
|
|
/**
|
|
* @property PHPParser_Node_Expr $value Value to pass
|
|
* @property bool $byRef Whether to pass by ref
|
|
*/
|
|
class PHPParser_Node_Arg extends PHPParser_NodeAbstract
|
|
{
|
|
/**
|
|
* Constructs a function call argument node.
|
|
*
|
|
* @param PHPParser_Node_Expr $value Value to pass
|
|
* @param bool $byRef Whether to pass by ref
|
|
* @param int $line Line
|
|
* @param null|string $docComment Nearest doc comment
|
|
*/
|
|
public function __construct(PHPParser_Node_Expr $value, $byRef = false, $line = -1, $docComment = null) {
|
|
parent::__construct(
|
|
array(
|
|
'value' => $value,
|
|
'byRef' => $byRef
|
|
),
|
|
$line, $docComment
|
|
);
|
|
}
|
|
} |