title = $title; } /** * @return string */ public function getType(): string { return $this->type; } /** * @param string $type * @return DashboardSection */ public function setType(string $type) { $this->type = $type; return $this; } /** * @return int */ public function getOrder(): int { return $this->order; } /** * @param int $order * @return DashboardSection */ public function setOrder(int $order) { $this->order = $order; return $this; } /** * @return string */ public function getTitle(): ?string { return $this->title; } /** * @return Widget[] */ public function getWidgets(): array { return $this->widgets; } /** * @param Widget $widget * @return DashboardSection */ public function addWidget(Widget $widget) { $this->widgets[] = $widget; return $this; } }