Skip to content

Commit

Permalink
Add Phpdoc to Hour
Browse files Browse the repository at this point in the history
  • Loading branch information
connorhu committed Mar 1, 2024
1 parent 31e6061 commit 12f8dce
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/Query/Mysql/Hour.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,24 @@
namespace DoctrineExtensions\Query\Mysql;

use Doctrine\ORM\Query\AST\Functions\FunctionNode;
use Doctrine\ORM\Query\AST\Node;
use Doctrine\ORM\Query\Parser;
use Doctrine\ORM\Query\SqlWalker;
use Doctrine\ORM\Query\TokenType;

/**
* "HEX" "(" ArithmeticPrimary ")"
* HourFunction ::= "HOUR" "(" ArithmeticPrimary ")"
*
* @link https://dev.mysql.com/doc/refman/8.0/en/date-and-time-functions.html#function_hour
*
* @author Dawid Nowak <macdada@mmg.pl>
*
* @example SELECT HOUR("12:50:15")
* @example SELECT HOUR(foo.bar) FROM entity
*/
class Hour extends FunctionNode
{
/** @var Node|string */
public $date;

public function getSql(SqlWalker $sqlWalker): string
Expand Down

0 comments on commit 12f8dce

Please sign in to comment.