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 PI() - returns the mathematical constant π.
*
* @see https://www.postgresql.org/docs/17/functions-math.html
* @since 3.2
* @author Martin Georgiev <[email protected]>
*/
class Pi extends BaseArithmeticFunction
{
protected function getFunctionName(): string
return 'PI';
}
protected function getMaxArgumentCount(): int
return 0; // PI() takes no arguments
protected function getMinArgumentCount(): int