id; } /** * @return string */ public function getName(): ?string { return $this->name; } /** * @param string $name * @return Configuration */ public function setName(string $name): Configuration { $this->name = $name; return $this; } /** * Given $value will not be serialized before its stored, * so it should be a scalar type that can be casted to string. */ public function setValue(string|int|bool|null $value): Configuration { if (null === $value) { $this->value = null; } elseif ($value === false) { $this->value = '0'; } else { $this->value = (string) $value; } return $this; } /** * @return string */ public function getValue(): ?string { return $this->value; } }