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_Rotate() function.
*
* Rotates a geometry by the given angle around the origin.
* Angle is in radians, positive values rotate counterclockwise.
* @see https://postgis.net/docs/ST_Rotate.html
* @since 3.5
* @author Martin Georgiev <[email protected]>
* @example Using it in DQL: "SELECT ST_ROTATE(g.geometry, 1.5708) FROM Entity g"
* Returns rotated geometry.
*/
class ST_Rotate extends BaseFunction
{
protected function customizeFunction(): void
$this->setFunctionPrototype('ST_Rotate(%s, %s)');
$this->addNodeMapping('StringPrimary');
$this->addNodeMapping('Literal');
}