Files
Chamilo/vendor/knplabs/doctrine-behaviors/src/Model/Geocodable/GeocodableMethods.php
2025-04-10 12:24:57 +02:00

47 lines
893 B
PHP

<?php
/**
* This file is part of the KnpDoctrineBehaviors package.
*
* (c) KnpLabs <http://knplabs.com/>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Knp\DoctrineBehaviors\Model\Geocodable;
use Knp\DoctrineBehaviors\ORM\Geocodable\Type\Point;
/**
* Geocodable trait.
*
* Should be used inside entity where you need to manipulate geographical information
*/
trait GeocodableMethods
{
/**
* Get location.
*
* @return Point.
*/
public function getLocation()
{
return $this->location;
}
/**
* Set location.
*
* @param Point|null $location the value to set.
*
* @return $this
*/
public function setLocation(Point $location = null)
{
$this->location = $location;
return $this;
}
}