X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/aa392e7390d8c6abd217d09b8a646f41625a91c7..HEAD:/Entity/Location.php diff --git a/Entity/Location.php b/Entity/Location.php index 75f6f45..d70bddf 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 = '0', 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');