*/ #[ORM\OneToMany(targetEntity: History::class, mappedBy: 'place_id', orphanRemoval: true)] private Collection $histories; #[ORM\ManyToOne(inversedBy: 'places')] private ?Stats $stats = null; #[ORM\Column(type: Types::BIGINT)] private ?string $osmId = null; #[ORM\Column(length: 255, nullable: true)] private ?string $name = null; public function __construct() { $this->histories = new ArrayCollection(); } public function getId(): ?int { return $this->id; } public function getUuidForUrl(): ?string { return $this->uuid_for_url; } public function setUuidForUrl(string $uuid_for_url): static { $this->uuid_for_url = $uuid_for_url; return $this; } public function getOsmKind(): ?string { return $this->osm_kind; } public function setOsmKind(string $osm_kind): static { $this->osm_kind = $osm_kind; return $this; } public function getEmail(): ?string { return $this->email; } public function setEmail(string $email): static { $this->email = $email; return $this; } public function isOptedOut(): ?bool { return $this->opted_out; } public function setOptedOut(bool $opted_out): static { $this->opted_out = $opted_out; return $this; } public function isDead(): ?bool { return $this->dead; } public function setDead(bool $dead): static { $this->dead = $dead; return $this; } public function getNote(): ?string { return $this->note; } public function setNote(?string $note): static { $this->note = $note; return $this; } public function getModifiedDate(): ?\DateTime { return $this->modified_date; } public function setModifiedDate(?\DateTime $modified_date): static { $this->modified_date = $modified_date; return $this; } public function getZipCode(): ?int { return $this->zip_code; } public function setZipCode(int $zip_code): static { $this->zip_code = $zip_code; return $this; } public function isAskedHumainsSupport(): ?bool { return $this->asked_humains_support; } public function setAskedHumainsSupport(bool $asked_humains_support): static { $this->asked_humains_support = $asked_humains_support; return $this; } public function getLastContactAttemptDate(): ?\DateTime { return $this->last_contact_attempt_date; } public function setLastContactAttemptDate(?\DateTime $last_contact_attempt_date): static { $this->last_contact_attempt_date = $last_contact_attempt_date; return $this; } /** * @return Collection */ public function getHistories(): Collection { return $this->histories; } public function addHistory(History $history): static { if (!$this->histories->contains($history)) { $this->histories->add($history); $history->setPlaceId($this); } return $this; } public function removeHistory(History $history): static { if ($this->histories->removeElement($history)) { // set the owning side to null (unless already changed) if ($history->getPlaceId() === $this) { $history->setPlaceId(null); } } return $this; } public function getStats(): ?Stats { return $this->stats; } public function setStats(?Stats $stats): static { $this->stats = $stats; return $this; } public function getOsmId(): ?string { return $this->osmId; } public function setOsmId(string $osmId): static { $this->osmId = $osmId; return $this; } public function getName(): ?string { return $this->name; } public function setName(?string $name): static { $this->name = $name; return $this; } }