(?:[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:----e5zeMF/P2BTsHPy8VMQGoCm2evwKGmueYn10gLlg/g1MxvqU2JlJtrthP+92qH4SSyLKkrYy0MNqq6FaSk+D6h0OE+JY73Im+TVCgggHGYy7UX2nGHYUwEPfNPqG2nWBVYC/KgChMXEhOfIXqveu3LomhWDwWj5+Cwak1O4KWpkqt8XA+uayeOzeqMRnKvnUq44LkhYHuEvADGr7atW3mP1eKh+vDyuqrvr5JIiYQGzGNE5gWcdk/azFxW5abKWJBEtJmTEeOFZhIfxcT4kldT1qUmaYljiXNEhiJggD3YNZ4n6S9x0jbkU/pnTLSzGOsPnhsXprsGtv+lYntEDCPg63Hy+IQKdiPG5eZq3XcJBTnD7i0qB1x8qnOHrbX58LG+VqJ7tRo7niPb6s7Hb1Hvaf7mvWYByNwQxyaD3eGxrYUrCGaxRIQER5rm5RDXiFLn5yrLuCZeP1+BenE7ImHp1ethPok5U3K4Ja/57CujnR/PxbneK3lrd4zrfz7gOUK4AyW3/s37doT5mRInI7oUul4/0XXaA5HWNSh7XsDjQLIfWjrhjHzf2KErdtM6Hidh+3RhkuP4qpiYmvwbXTu+M7avla2zM8BbDDXzV8+uMGRZ2M5I1wBITS7GDCK1WqJ1589Hg1EXQi2v0rU6psWr4HPSmkHTbDg+DewiTwKb8=----ATTACHMENT:----MzQ3MTQ2Njg0NDY5ODk3MSA3MjQ0OTg5MTE4MjU1MzQ0IDI0MjI0NDEyOTg3OTA2OTQ=