localized = true; $this->hearing_date = $hearing_date; $this->timezone = $hearing_date->getTimeZone()->getName(); $this->case_reference = $case_reference; $this->case_details = $case_details; $this->motoring_related = $motoring_related; $this->court = $court; } public function getId(): ?int { return $this->id; } public function setId(int $id): CourtSession { $this->id = $id; return $this; } public function getHearing_Date() { if (!$this->localized) { $this->hearing_date->setTimeZone(new \DateTimeZone($this->timezone)); } return $this->hearing_date; } public function setHearing_Date(\DateTime $hearing_date): CourtSession { $this->hearing_date = $hearing_date; return $this; } public function getCase_Reference(): string { return $this->case_reference; } public function setCase_Reference(string $case_reference): CourtSession { $this->case_reference = $case_reference; return $this; } public function getCase_Details(): string { return $this->case_details; } public function setCase_Details(string $case_details): CourtSession { $this->case_details = $case_details; return $this; } public function getCourt(): Court { return $this->court; } public function setCourt(Court $court): CourtSession { $this->court = $court; return $this; } public function getMotoring_Related(): bool { return $this->motoring_related; } public function isMotoring_Related(): bool { return $this->motoring_related; } public function setMotoring_Related(bool $motoring_related): CourtSession { $this->motoring_related = $motoring_related; return $this; } }