type = $type; $this->courier = $courier; $this->tracking_number = $tracking_number; $this->dispatch_date = $dispatch_date; $this->drop_date = $drop_date; $this->status = $status; } /** * @return int */ public function getType(): int { return $this->type; } /** * @return null|string */ public function getCourier(): ?string { return $this->courier; } /** * @return int */ public function getTrackingNumber(): string { return $this->tracking_number; } /** * @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; } }