12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <?php
-
-
- namespace Doctrine\ORM\Query\AST;
-
-
- class InputParameter extends Node
- {
- public $isNamed;
- public $name;
-
-
-
- public function __construct($value)
- {
- if (strlen($value) == 1) {
- throw \Doctrine\ORM\Query\QueryException::invalidParameterFormat($value);
- }
-
- $param = substr($value, 1);
- $this->isNamed = ! is_numeric($param);
- $this->name = $param;
- }
-
- public function dispatch($walker)
- {
- return $walker->walkInputParameter($this);
- }
- }
|