etd = $etd; $this->eta = $eta; $this->transport_id = $transport_id; } /** * @return string */ public function getETD(): Carbon { return $this->completed_date ? Carbon::parse($this->etd); } /** * @return string */ public function getETA(): Carbon { return $this->completed_date ? Carbon::parse($this->eta); } /** * @return int */ public function getTransportId(): int { return $this->transport_id; } }