length = $length; $this->value = $data; } public function __toString(): string { $result = parent::__toString(); if ($this->length !== null) { $result .= $this->length; } return $result . $this->value; } public static function create(string $data): self { return new self($data); } public function getValue(): string { return $this->value; } public function getLength(): int { return mb_strlen($this->value, '8bit'); } public function normalize(): string { return $this->value; } }