type = $type; $this->courier = $courier; $this->tracking_number = $tracking_number; $this->dispatch_date = $dispatch_date; $this->drop_date = $drop_date; $this->status = $status; } /** * @return string */ public function getType(): string { return $this->streetOne; } /** * @return null|string */ public function getCourier(): ?string { return $this->streetTwo; } /** * @return int */ public function getTrackingNumber(): int { return $this->countryId; } /** * @return int */ public function getDispatchDate(): Carbon { return $this->dispatch_date ? Carbon::parse($this->dispatch_date) : null; } /** * @return int */ public function getDropDate(): Carbon { return $this->drop_date ? Carbon::parse($this->drop_date) : null; } /** * @return int */ public function getStatus(): int { return $this->status; } }