Skip to content

Commit

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

/**
* "CRC32" "(" StringPrimary ")"
* Crc32Function ::= "CRC32" "(" StringPrimary ")"
*
* @link https://dev.mysql.com/doc/refman/en/mathematical-functions.html#function_crc32
*
* @author Igor Timoshenko <igor.timoshenko@i.ua>
* @example SELECT CRC32(foo.bar) FROM entity
* @example SELECT CRC32("string")
*/
class Crc32 extends FunctionNode
{
/** @var Node */
public $stringPrimary;

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

0 comments on commit f0e19f4

Please sign in to comment.