Файл: gapps/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/New_.php
Строк: 23
<?php
namespace PhpParserNodeExpr;
use PhpParserNode;
use PhpParserNodeExpr;
class New_ extends Expr
{
/** @var NodeName|Expr|NodeStmtClass_ Class name */
public $class;
/** @var NodeArg[] Arguments */
public $args;
/**
* Constructs a function call node.
*
* @param NodeName|Expr|NodeStmtClass_ $class Class name (or class node for anonymous classes)
* @param NodeArg[] $args Arguments
* @param array $attributes Additional attributes
*/
public function __construct($class, array $args = array(), array $attributes = array()) {
parent::__construct($attributes);
$this->class = $class;
$this->args = $args;
}
public function getSubNodeNames() {
return array('class', 'args');
}
}