X-Git-Url: https://git.rapsys.eu/.gitweb.cgi/airbundle/blobdiff_plain/aa392e7390d8c6abd217d09b8a646f41625a91c7..8af69ac700a76d252d0c2beceaeee29b41f5d483:/Entity/Location.php diff --git a/Entity/Location.php b/Entity/Location.php index 75f6f45..62ef9fc 100644 --- a/Entity/Location.php +++ b/Entity/Location.php @@ -24,51 +24,11 @@ class Location { */ private ?int $id = null; - /** - * @var string - */ - private $title; - /** * @var string */ private ?string $description = null; - /** - * @var string - */ - private $address; - - /** - * @var string - */ - private $zipcode; - - /** - * @var string - */ - private $city; - - /** - * @var string - */ - private $latitude; - - /** - * @var string - */ - private $longitude; - - /** - * @var bool - */ - private $indoor; - - /** - * @var bool - */ - private $hotspot; - /** * Create datetime */ @@ -97,7 +57,7 @@ class Location { /** * Constructor */ - public function __construct() { + public function __construct(private string $title = '', private string $address = '', private string $zipcode = '', private string $city = '', private string $latitude = '0', private string $longitude = '0', private bool $hotspot = false, private bool $indoor = false) { //Set defaults $this->created = new \DateTime('now'); $this->updated = new \DateTime('now');