uuid = Uuid::v4()->toRfc4122(); $this->serviceItemId = $serviceItemId; $this->year = $year; $this->priceRials = $priceRials; $this->createdAt = time(); $this->updatedAt = time(); } public function getId(): ?int { return $this->id; } public function getUuid(): string { return $this->uuid; } public function getServiceItemId(): int { return $this->serviceItemId; } public function getYear(): int { return $this->year; } public function getPriceRials(): int { return $this->priceRials; } public function isActive(): bool { return $this->isActive; } public function setPriceRials(int $v): self { $this->priceRials = $v; $this->updatedAt = time(); return $this; } public function setActive(bool $v): self { $this->isActive = $v; $this->updatedAt = time(); return $this; } public function toArray(): array { return [ 'uuid' => $this->uuid, 'service_item_id' => $this->serviceItemId, 'year' => $this->year, 'price_rials' => $this->priceRials, 'is_active' => $this->isActive, ]; } }