id = $id; $this->name = $name; $this->colour = $colour; } public function getId(): string { return $this->id; } public function getName(): WString { return $this->name; } public function hasColour(): bool { return $this->colour !== null; } public function getColour(): Colour { return $this->colour === null ? Colour::none() : ColourRGB::fromRawRGB($this->colour); } public function getColourRaw(): ?int { return $this->colour; } }