2011-10-16 14:49:13 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @property array $vars List of variables to assign to
|
|
|
|
* @property PHPParser_Node_Expr $expr Expression
|
|
|
|
*/
|
|
|
|
class PHPParser_Node_Expr_AssignList extends PHPParser_Node_Expr
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Constructs a list() assignment node.
|
|
|
|
*
|
|
|
|
* @param array $vars List of variables to assign to
|
|
|
|
* @param PHPParser_Node_Expr $expr Expression
|
2012-04-29 23:32:09 +02:00
|
|
|
* @param array $attributes Additional attributes
|
2011-10-16 14:49:13 +02:00
|
|
|
*/
|
2012-04-29 23:32:09 +02:00
|
|
|
public function __construct(array $vars, PHPParser_Node_Expr $expr, array $attributes = array()) {
|
2011-10-16 14:49:13 +02:00
|
|
|
parent::__construct(
|
|
|
|
array(
|
|
|
|
'vars' => $vars,
|
|
|
|
'expr' => $expr
|
|
|
|
),
|
2012-04-29 23:32:09 +02:00
|
|
|
$attributes
|
2011-10-16 14:49:13 +02:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|