for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace MartinGeorgiev\Doctrine\ORM\Query\AST\Functions;
/**
* Implementation of PostgreSQL SHA224().
*
* @see https://www.postgresql.org/docs/17/functions-binarystring.html
* @since 4.0
* @author Martin Georgiev <[email protected]>
* @example Using it in DQL: "SELECT SHA224(e.data) FROM Entity e"
*/
class Sha224 extends BaseFunction
{
protected function customizeFunction(): void
$this->setFunctionPrototype('sha224(%s::bytea)');
$this->addNodeMapping('StringPrimary');
}