users = new ArrayCollection(); $this->unit = UnitModel::UNIT_AMOUNT; } public function __toString() { return $this->title; } public function getTitle(): ?string { return $this->title; } public function setTitle(string $title): self { $this->title = $title; return $this; } public function getMerchant(): MerchantInterface { return $this->merchant; } public function setMerchant(MerchantInterface $merchant): self { $this->merchant = $merchant; return $this; } public function getType(): ?string { return $this->type; } public function setType(string $type): self { $this->type = $type; return $this; } /** * @return Collection|UserInterface[] */ public function getUsers(): Collection { return $this->users; } public function addUser(UserInterface $user): self { if (!$this->users->contains($user)) { $this->users[] = $user; } return $this; } public function removeUser(UserInterface $user): self { if ($this->users->contains($user)) { $this->users->removeElement($user); } return $this; } public function getSended(): ?bool { return $this->sended; } public function setSended(?bool $sended): self { $this->sended = $sended; return $this; } public function getOwner(): ?UserInterface { return $this->owner; } public function setOwner(?UserInterface $owner): self { $this->owner = $owner; return $this; } public function getActivationDate(): ?\DateTimeInterface { return $this->activationDate; } public function setActivationDate(?\DateTimeInterface $activationDate): self { $this->activationDate = $activationDate; return $this; } public function getOwnerName(): ?string { return $this->ownerName; } public function setOwnerName(?string $ownerName): self { $this->ownerName = $ownerName; return $this; } public function getOwnerMessage(): ?string { return $this->ownerMessage; } public function setOwnerMessage(?string $ownerMessage): self { $this->ownerMessage = $ownerMessage; return $this; } }