value = $value; $this->prohibited = $prohibited; } public function getValue(): string { return $this->value; } public function __toString(): string { return ($this->prohibited ? '-' : '') . $this->value; } }