type = $type; } public function getType(): string { return $this->type; } public function setType(string $type): self { $this->type = $type; return $this; } public function getIdx(): ?int { return $this->idx; } public function setIdx(int $idx): self { $this->idx = $idx; return $this; } }