X-Git-Url: https://git.rapsys.eu/.gitweb.cgi/airbundle/blobdiff_plain/9aad88c45d93dadacd35176364b56df4734c017b..1d2f3611d73e15020a71b0e65c8e2daf9750b05c:/Entity/Location.php diff --git a/Entity/Location.php b/Entity/Location.php index 1fdca93..4af1280 100644 --- a/Entity/Location.php +++ b/Entity/Location.php @@ -28,11 +28,6 @@ class Location { */ private $title; - /** - * @var string - */ - private $short; - /** * @var string */ @@ -128,28 +123,6 @@ class Location { return $this->title; } - /** - * Set short - * - * @param string $short - * - * @return Location - */ - public function setShort(string $short): Location { - $this->short = $short; - - return $this; - } - - /** - * Get short - * - * @return string - */ - public function getShort(): string { - return $this->short; - } - /** * Set address * @@ -427,9 +400,9 @@ class Location { */ public function preUpdate(PreUpdateEventArgs $eventArgs) { //Check that we have a location instance - if (($user = $eventArgs->getEntity()) instanceof Location) { + if (($location = $eventArgs->getEntity()) instanceof Location) { //Set updated value - $user->setUpdated(new \DateTime('now')); + $location->setUpdated(new \DateTime('now')); } }