Skip to content

Commit

Permalink
Add Phpdoc to CharLength
Browse files Browse the repository at this point in the history
  • Loading branch information
connorhu committed Mar 1, 2024
1 parent a34ae02 commit 705a032
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/Query/Mysql/CharLength.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,25 @@

namespace DoctrineExtensions\Query\Mysql;

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

/**
* "CHAR_LENGTH" "(" ArithmeticExpression ")"
* CharLengthFunction ::= "CHAR_LENGTH" "(" ArithmeticExpression ")"
*
* @author Metod <metod@simpel.si>

Check failure on line 14 in src/Query/Mysql/CharLength.php

View workflow job for this annotation

GitHub Actions / coding-standards / Coding Standards (8.3)

Incorrect order of annotations groups.
*
* @link https://dev.mysql.com/doc/refman/8.0/en/string-functions.html#function_char-length
*
* @example SELECT CHAR_LENGTH(foo.bar) FROM entity
* @example SELECT CHAR_LENGTH("string") FROM entity
*/
class CharLength extends FunctionNode
{
/** @var ArithmeticExpression */
private $expr1;

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

0 comments on commit 705a032

Please sign in to comment.