date = $date; $this->amount = $amount; $this->surface = $surface; $this->region = $region; } // getters public function getId(): ?int { return $this->id; } public function getDate(): ?\DateTimeInterface { return $this->date; } public function getAmount(): ?float { return $this->amount; } public function getSurface(): ?float { return $this->surface; } public function getRegion(): ?string { return $this->region; } // setters public function setDate(\DateTimeImmutable $date): void { $this->date = $date; } public function setAmount(float $amount): void { $this->amount = $amount; } public function setSurface(float $surface): void { $this->surface = $surface; } public function setRegion(string $region): void { $this->region = $region; } }