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_3DPerimeter() function.
*
* Returns the 3D perimeter of the geometry if it is a polygon or multi-polygon.
* For non-areal geometries, 0 is returned.
* @see https://postgis.net/docs/ST_3DPerimeter.html
* @since 3.5
* @author Martin Georgiev <[email protected]>
* @example Using it in DQL: "SELECT ST_3DPERIMETER(g.geometry) FROM Entity g"
* Returns numeric 3D perimeter value.
*/
class ST_3DPerimeter extends BaseFunction
{
protected function customizeFunction(): void
$this->setFunctionPrototype('ST_3DPerimeter(%s)');
$this->addNodeMapping('StringPrimary');
}