. */ namespace Doctrine\ORM\Query\AST; /** * NewObjectExpression ::= "NEW" IdentificationVariable "(" NewObjectArg {"," NewObjectArg}* ")" * * @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 $className; /** * @var array */ public $args; /** * @param string $className * @param array $args */ public function __construct($className, array $args) { $this->className = $className; $this->args = $args; } /** * {@inheritdoc} */ public function dispatch($sqlWalker) { return $sqlWalker->walkNewObject($this); } }