description; } public function setDescription(?int $description): self { $this->description = $description; return $this; } public function getProduct(): ?int { return $this->product; } public function setProduct(?int $product): self { $this->product = $product; return $this; } public function getProducts(): ?int { return $this->products; } public function setProducts(?int $products): self { $this->products = $products; return $this; } public function getReviews(): ?int { return $this->reviews; } public function setReviews(?int $reviews): self { $this->reviews = $reviews; return $this; } public function getCategory(): ?int { return $this->category; } public function setCategory(?int $category): self { $this->category = $category; return $this; } public function getShipping(): ?int { return $this->shipping; } public function setShipping(?int $shipping): self { $this->shipping = $shipping; return $this; } public function getOrders(): ?int { return $this->orders; } public function setOrders(?int $orders): self { $this->orders = $orders; return $this; } public function getSum(): int { return $this->getProducts() + $this->getProduct() + $this->getDescription() + $this->getReviews() + $this->getShipping() + $this->getOrders(); } public function toArray(): array { return [ self::FIELD_DESCRIPTION => $this->getDescription(), self::FIELD_PRODUCT => $this->getProduct(), self::FIELD_PRODUCTS => $this->getProducts(), self::FIELD_REVIEWS => $this->getReviews(), self::FIELD_CATEGORY => $this->getCategory(), self::FIELD_SHIPPING => $this->getShipping(), self::FIELD_ORDERS => $this->getOrders(), ]; } }