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\PostGIS;
use MartinGeorgiev\Doctrine\ORM\Query\AST\Functions\BaseFunction;
/**
* Implementation of PostGIS ST_3DDWithin() function.
*
* Tests if two 3D geometries are within a given 3D distance.
* @see https://postgis.net/docs/ST_3DDWithin.html
* @since 3.5
* @author Martin Georgiev <[email protected]>
* @example Using it in DQL: "WHERE ST_3DDWithin(g.geometry1, g.geometry2, 1000) = TRUE"
* Returns boolean, must be used with "= TRUE" or "= FALSE" in DQL.
*/
class ST_3DDWithin extends BaseFunction
{
protected function customizeFunction(): void
$this->setFunctionPrototype('ST_3DDWithin(%s, %s, %s)');
$this->addNodeMapping('StringPrimary');
$this->addNodeMapping('ArithmeticPrimary');
}