name = $name; $this->code = $code; $this->isEnabled = $enabled; } public function getId(): int { return $this->id; } public function __toString() { return $this->name; } public function setName(string $name): self { $this->name = $name; return $this; } public function getName(): string { return $this->name; } public function setCode($code): self { $this->code = $code; return $this; } public function getCode(): string { return $this->code; } public function setIsEnabled($isEnabled): self { $this->isEnabled = $isEnabled; return $this; } public function getIsEnabled(): bool { return $this->isEnabled; } function getIsPreferred(): bool { return $this->isPreferred; } function setIsPreferred(bool $isPreferred): self { $this->isPreferred = $isPreferred; return $this; } }