public function __construct(&$Value) { parent::__construct(['Value' => &$Value], []); }
/** * Constructs an error suppress node. * * @param PHPParser_Node_Expr $expr Expression * @param int $line Line * @param null|string $docComment Nearest doc comment */ public function __construct(PHPParser_Node_Expr $expr, $line = -1, $docComment = null) { parent::__construct(array('expr' => $expr), $line, $docComment); }
/** * Constructs a concat node. * * @param PHPParser_Node_Expr $left The left hand side expression * @param PHPParser_Node_Expr $right The right hand side expression * @param array $attributes Additional attributes */ public function __construct(PHPParser_Node_Expr $left, PHPParser_Node_Expr $right, array $attributes = array()) { parent::__construct(array('left' => $left, 'right' => $right), $attributes); }
/** * Constructs a function call node. * * @param PHPParser_Node_Name|PHPParser_Node_Expr $class Class name * @param PHPParser_Node_Arg[] $args Arguments * @param int $line Line * @param null|string $docComment Nearest doc comment */ public function __construct($class, array $args = array(), $line = -1, $docComment = null) { parent::__construct(array('class' => $class, 'args' => $args), $line, $docComment); }
/** * Constructs a yield expression node. * * @param null|PHPParser_Node_Expr $value ´ Value expression * @param null|PHPParser_Node_Expr $key Key expression * @param array $attributes Additional attributes */ public function __construct(PHPParser_Node_Expr $value = null, PHPParser_Node_Expr $key = null, array $attributes = array()) { parent::__construct(array('key' => $key, 'value' => $value), $attributes); }
public function __construct($vars, $line = -1, $docComment = null) { parent::__construct(array('vars' => $vars), $line, $docComment); }
/** * 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); }
/** * Constructs a lambda function node. * * @param array $subNodes Array of the following optional subnodes: * 'stmts' => array(): Statements * 'params' => array(): Parameters * 'uses' => array(): use()s * 'byRef' => false : Whether to return by reference * 'static' => false : Whether the closure is static * @param int $line Line * @param null|string $docComment Nearest doc comment */ public function __construct(array $subNodes = array(), $line = -1, $docComment = null) { parent::__construct($subNodes + array('stmts' => array(), 'params' => array(), 'uses' => array(), 'byRef' => false, 'static' => false), $line, $docComment); }
/** * Constructs a function call node. * * @param PHPParser_Node_Name|PHPParser_Node_Expr $name Function name * @param PHPParser_Node_Arg[] $args Arguments * @param int $line Line * @param null|string $docComment Nearest doc comment */ public function __construct($name, array $args = array(), $line = -1, $docComment = null) { parent::__construct(array('name' => $name, 'args' => $args), $line, $docComment); }
/** * Constructs a shell exec (backtick) node. * * @param array $parts Encapsed string array * @param array $attributes Additional attributes */ public function __construct($parts, array $attributes = array()) { parent::__construct(array('parts' => $parts), $attributes); }
/** * Constructs a lambda function node. * * @param array $subNodes Array of the following optional subnodes: * 'stmts' => array(): Statements * 'params' => array(): Parameters * 'uses' => array(): use()s * 'byRef' => false : Whether to return by reference * 'static' => false : Whether the closure is static * @param array $attributes Additional attributes */ public function __construct(array $subNodes = array(), array $attributes = array()) { parent::__construct($subNodes + array('stmts' => array(), 'params' => array(), 'uses' => array(), 'byRef' => false, 'static' => false), $attributes); }
/** * Constructs a function call node. * * @param PHPParser_Node_Name|PHPParser_Node_Expr $class Class name * @param PHPParser_Node_Arg[] $args Arguments * @param array $attributes Additional attributes */ public function __construct($class, array $args = array(), array $attributes = array()) { parent::__construct(array('class' => $class, 'args' => $args), $attributes); }
/** * Constructs an array node. * * @param PHPParser_Node_Expr_ArrayItem[] $items Items of the array * @param array $attributes Additional attributes */ public function __construct(array $items = array(), array $attributes = array()) { parent::__construct(array('items' => $items), $attributes); }
/** * Constructs an array item node. * * @param PHPParser_Node_Expr $value Value * @param null|PHPParser_Node_Expr $key Key * @param bool $byRef Whether to assign by reference * @param int $line Line * @param null|string $docComment Nearest doc comment */ public function __construct(PHPParser_Node_Expr $key, PHPParser_Node_Expr $value = null, $line = -1, $docComment = null) { parent::__construct(array('key' => $key, 'value' => $value), $line, $docComment); }
/** * Constructs a variable node. * * @param string|PHPParser_Node_Expr $name Name * @param int $line Line * @param null|string $docComment Nearest doc comment */ public function __construct($name, $line = -1, $docComment = null) { parent::__construct(array('name' => $name), $line, $docComment); }
/** * Constructs a const fetch node. * * @param PHPParser_Node_Name $name Constant name * @param array $attributes Additional attributes */ public function __construct(PHPParser_Node_Name $name, array $attributes = array()) { parent::__construct(array('name' => $name), $attributes); }
public function __construct(PHPParser_Node $test_for, $default, $line = -1, $docComment = null) { parent::__construct(array('test_for' => $test_for, 'default' => $default), $line, $docComment); }
/** * Constructs an array index fetch node. * * @param PHPParser_Node_Expr $var Variable * @param null|PHPParser_Node_Expr $dim Array index / dim * @param array $attributes Additional attributes */ public function __construct(PHPParser_Node_Expr $var, PHPParser_Node_Expr $dim = null, array $attributes = array()) { parent::__construct(array('var' => $var, 'dim' => $dim), $attributes); }
/** * Constructs a function call node. * * @param PHPParser_Node_Expr $var Variable holding object * @param string|PHPParser_Node_Expr $name Method name * @param PHPParser_Node_Arg[] $args Arguments * @param array $attributes Additional attributes */ public function __construct(PHPParser_Node_Expr $var, $name, array $args = array(), array $attributes = array()) { parent::__construct(array('var' => $var, 'name' => $name, 'args' => $args), $attributes); }
/** * Constructs a closure use node. * * @param string $var Name of variable * @param bool $byRef Whether to use by reference * @param int $line Line * @param null|string $docComment Nearest doc comment */ public function __construct($var, $byRef = false, $line = -1, $docComment = null) { parent::__construct(array('var' => $var, 'byRef' => $byRef), $line, $docComment); }
/** * Constructs a function call node. * * @param PHPParser_Node_Expr $var Variable holding object * @param string|PHPParser_Node_Expr $name Property name * @param int $line Line * @param null|string $docComment Nearest doc comment */ public function __construct(PHPParser_Node_Expr $var, $name, $line = -1, $docComment = null) { parent::__construct(array('var' => $var, 'name' => $name), $line, $docComment); }
/** * Constructs an array index fetch node. * * @param PHPParser_Node_Expr $var Variable * @param null|PHPParser_Node_Expr $dim Array index / dim * @param int $line Line * @param null|string $docComment Nearest doc comment */ public function __construct(PHPParser_Node_Expr $var, PHPParser_Node_Expr $dim = null, $line = -1, $docComment = null) { parent::__construct(array('var' => $var, 'dim' => $dim), $line, $docComment); }
/** * Constructs a ternary operator node. * * @param PHPParser_Node_Expr $cond Condition * @param null|PHPParser_Node_Expr $if Expression for true * @param PHPParser_Node_Expr $else Expression for false * @param array $attributes Additional attributes */ public function __construct(PHPParser_Node_Expr $cond, $if, PHPParser_Node_Expr $else, array $attributes = array()) { parent::__construct(array('cond' => $cond, 'if' => $if, 'else' => $else), $attributes); }
/** * Constructs a ternary operator node. * * @param PHPParser_Node_Expr $cond Condition * @param null|PHPParser_Node_Expr $if Expression for true * @param PHPParser_Node_Expr $else Expression for false * @param int $line Line * @param null|string $docComment Nearest doc comment */ public function __construct(PHPParser_Node_Expr $cond, $if, PHPParser_Node_Expr $else, $line = -1, $docComment = null) { parent::__construct(array('cond' => $cond, 'if' => $if, 'else' => $else), $line, $docComment); }
/** * Constructs a class const fetch node. * * @param PHPParser_Node_Name|PHPParser_Node_Expr $class Class name * @param string $name Constant name * @param array $attributes Additional attributes */ public function __construct($class, $name, array $attributes = array()) { parent::__construct(array('class' => $class, 'name' => $name), $attributes); }
/** * Constructs an array item node. * * @param PHPParser_Node_Expr $value Value * @param null|PHPParser_Node_Expr $key Key * @param bool $byRef Whether to assign by reference * @param array $attributes Additional attributes */ public function __construct(PHPParser_Node_Expr $value, PHPParser_Node_Expr $key = null, $byRef = false, array $attributes = array()) { parent::__construct(array('key' => $key, 'value' => $value, 'byRef' => $byRef), $attributes); }
/** * Constructs a logical and node. * * @param PHPParser_Node_Expr $left The left hand side expression * @param PHPParser_Node_Expr $right The right hand side expression * @param int $line Line * @param null|string $docComment Nearest doc comment */ public function __construct(PHPParser_Node_Expr $left, PHPParser_Node_Expr $right, $line = -1, $docComment = null) { parent::__construct(array('left' => $left, 'right' => $right), $line, $docComment); }
/** * Constructs an array node. * * @param PHPParser_Node_Expr[] $vars Variables * @param array $attributes Additional attributes */ public function __construct(array $vars, array $attributes = array()) { parent::__construct(array('vars' => $vars), $attributes); }
/** * Constructs an empty() node. * * @param PHPParser_Node_Expr $expr Expression * @param array $attributes Additional attributes */ public function __construct(PHPParser_Node_Expr $expr, array $attributes = array()) { parent::__construct(array('expr' => $expr), $attributes); }
/** * Constructs a function call node. * * @param PHPParser_Node_Name|PHPParser_Node_Expr $name Function name * @param PHPParser_Node_Arg[] $args Arguments * @param array $attributes Additional attributes */ public function __construct($name, array $args = array(), array $attributes = array()) { parent::__construct(array('name' => $name, 'args' => $args), $attributes); }