2017 - 2022 * (c) Longitude One 2020 - 2022 * (c) 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 LongitudeOne\Spatial\PHP\Types\Geography\GeographyInterface; /** * Geography entity. * * @author Derek J. Lambert * @license https://dlambert.mit-license.org MIT * * @Entity * * @internal */ class GeographyEntity { /** * @var GeographyInterface * * @Column(type="geography", nullable=true) */ protected $geography; /** * @var int * * @Id * @GeneratedValue(strategy="AUTO") * @Column(type="integer") */ protected $id; /** * Get geography. * * @return GeographyInterface */ public function getGeography() { return $this->geography; } /** * Get id. * * @return int */ public function getId() { return $this->id; } /** * Set geography. * * @param GeographyInterface $geography Geography to set * * @return self */ public function setGeography(GeographyInterface $geography) { $this->geography = $geography; return $this; } }