| 1 | <?php |
||
| 8 | class Format extends FunctionNode |
||
| 9 | { |
||
| 10 | /* |
||
| 11 | * holds the timestamp of the DATE_FORMAT DQL statement |
||
| 12 | * @var mixed |
||
| 13 | */ |
||
| 14 | protected $dateExpression; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * holds the '%format' parameter of the DATE_FORMAT DQL statement. |
||
| 18 | * |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | protected $formatChar; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * getSql - allows ORM to inject a DATE_FORMAT() statement into an SQL string being constructed. |
||
|
|
|||
| 25 | * |
||
| 26 | * @param \Doctrine\ORM\Query\SqlWalker $sqlWalker |
||
| 27 | * |
||
| 28 | * @return void |
||
| 29 | */ |
||
| 30 | public function getSql(\Doctrine\ORM\Query\SqlWalker $sqlWalker) |
||
| 38 | |||
| 39 | /** |
||
| 40 | * parse - allows DQL to breakdown the DQL string into a processable structure. |
||
| 41 | * |
||
| 42 | * @param \Doctrine\ORM\Query\Parser $parser |
||
| 43 | */ |
||
| 44 | public function parse(\Doctrine\ORM\Query\Parser $parser) |
||
| 55 | } |
||
| 56 |
Overly long lines are hard to read on any screen. Most code styles therefor impose a maximum limit on the number of characters in a line.