- public function __construct() {
- $this->sessions = new \Doctrine\Common\Collections\ArrayCollection();
- $this->snippets = new \Doctrine\Common\Collections\ArrayCollection();
- $this->users = new \Doctrine\Common\Collections\ArrayCollection();
+ 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');
+
+ //Set collections
+ $this->sessions = new ArrayCollection();
+ $this->snippets = new ArrayCollection();
+ $this->users = new ArrayCollection();