* @license https://dlambert.mit-license.org MIT * * @Entity * @Table */ 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; } }