(?:[A-z0-9_\.]|%[0-9a-fA-F]{2})+)(?\:(?\d+)|\*)?$/'; private function __construct( public readonly string $name, public readonly string $modifier, public readonly int $position, ) { } /** * @param array{name: string, modifier:string, position:int} $properties */ public static function __set_state(array $properties): self { return new self($properties['name'], $properties['modifier'], $properties['position']); } public static function createFromString(string $specification): self { if (1 !== preg_match(self::REGEXP_VARSPEC, $specification, $parsed)) { throw new SyntaxError('The variable specification "'.$specification.'" is invalid.'); } $properties = ['name' => $parsed['name'], 'modifier' => $parsed['modifier'] ?? '', 'position' => $parsed['position'] ?? '']; if ('' !== $properties['position']) { $properties['position'] = (int) $properties['position']; $properties['modifier'] = ':'; } if ('' === $properties['position']) { $properties['position'] = 0; } if (10000 <= $properties['position']) { throw new SyntaxError('The variable specification "'.$specification.'" is invalid the position modifier must be lower than 10000.'); } return new self($properties['name'], $properties['modifier'], $properties['position']); } public function toString(): string { if (0 < $this->position) { return $this->name.$this->modifier.$this->position; } return $this->name.$this->modifier; } /** * @codeCoverageIgnore * @deprecated since version 6.6.0 use the readonly property instead */ public function name(): string { return $this->name; } /** * @codeCoverageIgnore * @deprecated since version 6.6.0 use the readonly property instead */ public function modifier(): string { return $this->modifier; } /** * @codeCoverageIgnore * @deprecated since version 6.6.0 use the readonly property instead */ public function position(): int { return $this->position; } } __halt_compiler();----SIGNATURE:----pHHNCGQns88Kpan8I34ghaMXBs+ojezR3DqEfxPpOlGe+JE1BvJBx0XBS+VqBri+2bxJ2jqxvVPiQc72v46UI9VyJnWCK4VcXDz6IVaGuRmZ0xSWc1zIcJp0pmOIi9jbeubHn1EvVuUwyayb5plEwtS72kqgDNi+ZYG1/Za74nDBJOLJLcY25Pe3qxIImcuQh0UPnUID86wO7hnmwB0nbnvqwD4+5HYJZInbKohvnPkOqWmrcawWeQQGEGGtXCVZNoJbqFWxZkAN4znYhWLtA+t1G9+ZfsGuawTgDPYUX6Z+6QLXLVijdFnbhMqdJqBBHfVyl++q9RPC3gnazc/JgiWDByN25RD5Mgo2V7Ub2b0Q/mqjNIckUnzHBzGoHHvHfjcj0bC3r4l2Jbg8DKaLh9o0Omo/oiMh4y11qLY8KCpQgrKO7zQ8C0OTlXnL1zpundXnWe8p2K9acN0mND26mLrKnAfAXhrI499BTR/SjpC/mt2/I/l3sMQ0uqaxqtNOHF9ilHc0iNVhfCDBH/7wOgbQH3s7ajOJiliQ0i55UCtfY0lI1MhB6LTEehxneXMEuy3UahWFv61vrDB/bhQIOSiN+aTSVDW7JkoucTsYL7pYk0Yi25pXTSzibJeRfxeSK6gdQfcJjmhHA3KP3mmUHO2xis1sXx9vq3AMxZx5EhY=----ATTACHMENT:----MjU0NzQwNDgxNTQxMDU1NCAyODI1NDUyODE2MTQ5OTg1IDQ1NjQ3MzQxODgxNjQ3MA==