Skip to content

Commit

Permalink
Add Phpdoc to LastDay function
Browse files Browse the repository at this point in the history
  • Loading branch information
connorhu committed Mar 4, 2024
1 parent 8e5b723 commit 9f5355a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/Query/Mysql/LastDay.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,25 @@
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;

/**
* "LAST_DAY" "(" ArithmeticPrimary ")"
* LastDayFunction ::= "LAST_DAY" "(" ArithmeticPrimary ")"
*
* @link https://dev.mysql.com/doc/refman/8.3/en/date-and-time-functions.html#function_last-day
*
* @author Rafael Kassner <[email protected]>
* @author Sarjono Mukti Aji <[email protected]>
*
* @example SELECT LAST_DAY('2023-05-06')
* @example SELECT LAST_DAY(foo.bar) FROM entity
*/
class LastDay extends FunctionNode
{
/** @var Node|string */
public $date;

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

0 comments on commit 9f5355a

Please sign in to comment.