2017-2024 * Copyright Longitude One 2020-2024 * Copyright 2015 Derek J. Lambert * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * */ namespace LongitudeOne\Spatial\Tests\Fixtures; use Doctrine\ORM\Mapping\Column; use Doctrine\ORM\Mapping\Entity; use Doctrine\ORM\Mapping\GeneratedValue; use Doctrine\ORM\Mapping\Id; use Doctrine\ORM\Mapping\Table; use LongitudeOne\Spatial\PHP\Types\Geometry\Polygon; /** * Polygon entity. * * @author Derek J. Lambert * @license https://dlambert.mit-license.org MIT * * @internal */ #[Table] #[Entity] class PolygonEntity { /** * @var int */ #[Id] #[GeneratedValue(strategy: 'AUTO')] #[Column(type: 'integer')] protected $id; /** * @var Polygon */ #[Column(type: 'polygon', nullable: true)] protected $polygon; /** * Get id. * * @return int */ public function getId() { return $this->id; } /** * Get polygon. * * @return Polygon */ public function getPolygon() { return $this->polygon; } /** * Set polygon. * * @param Polygon $polygon polygon to set * * @return self */ public function setPolygon(Polygon $polygon) { $this->polygon = $polygon; return $this; } }