. */ namespace Doctrine\ORM\Query\AST; /** * NewObjectExpression ::= "NEW" IdentificationVariable "(" SimpleSelectExpression {"," SimpleSelectExpression}* ")" * * @license http://www.opensource.org/licenses/lgpl-license.php LGPL * @link www.doctrine-project.org * @since 2.3 * @author Fabio B. Silva */ class NewObjectExpression extends Node { /** * @var string */ public $identificationVariable; /** * @var array */ public $fieldSet; /** * @param type $identificationVariable * @param array $fieldSet */ public function __construct($identificationVariable, array $fieldSet) { $this->identificationVariable = $identificationVariable; $this->fieldSet = $fieldSet; } /** * @param \Doctrine\ORM\Query\SqlWalker $sqlWalker * @return string */ public function dispatch($sqlWalker) { return $sqlWalker->walkNewObject($this); } }