. */ namespace Doctrine\ORM\Query\AST; /** * Description of InputParameter * * @license http://www.opensource.org/licenses/lgpl-license.php LGPL * @link www.doctrine-project.org * @since 2.0 * @version $Revision: 3938 $ * @author Guilherme Blanco * @author Jonathan Wage * @author Roman Borschel */ class InputParameter extends Node { public $isNamed; public $name; public function __construct($value) { if (strlen($value) == 1) { throw new \InvalidArgumentException("Invalid parameter format."); } $param = substr($value, 1); $this->isNamed = ! is_numeric($param); $this->name = $param; } public function dispatch($sqlWalker) { return $sqlWalker->walkInputParameter($this); } }