Skip to content

Commit

Permalink
Add Phpdoc to Div
Browse files Browse the repository at this point in the history
  • Loading branch information
connorhu committed Mar 1, 2024
1 parent 1850a12 commit a914044
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/Query/Mysql/Div.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,19 @@
use Doctrine\ORM\Query\TokenType;

/**
* "DIV" "(" ArithmeticPrimary "," ArithmeticPrimary ")"
* DivFunction ::= "DIV" "(" ArithmeticPrimary "," ArithmeticPrimary ")"
*
* @link https://dev.mysql.com/doc/refman/en/arithmetic-functions.html#operator_div
*
* @example SELECT DIV(2, 5)
* @example SELECT DIV(foo.bar, foo.bar2) FROM entity
*/
class Div extends FunctionNode
{
/** @var Node */
/** @var Node|string */
private $dividend;

/** @var Node */
/** @var Node|string */
private $divisor;

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

0 comments on commit a914044

Please sign in to comment.