* * @psalm-readonly-allow-private-mutation */ private array $matches; public function __construct(Cursor $contents, AbstractBlock $container, ReferenceMapInterface $referenceMap) { $this->referenceMap = $referenceMap; $this->container = $container; $this->cursor = $contents; $this->delimiterStack = new DelimiterStack(); } public function getContainer(): AbstractBlock { return $this->container; } public function getReferenceMap(): ReferenceMapInterface { return $this->referenceMap; } public function getCursor(): Cursor { return $this->cursor; } public function getDelimiterStack(): DelimiterStack { return $this->delimiterStack; } /** * @return string The full text that matched the InlineParserMatch definition */ public function getFullMatch(): string { return $this->matches[0]; } /** * @return int The length of the full match (in characters, not bytes) */ public function getFullMatchLength(): int { return \mb_strlen($this->matches[0], 'UTF-8'); } /** * @return string[] Similar to preg_match(), index 0 will contain the full match, and any other array elements will be captured sub-matches * * @psalm-return non-empty-array */ public function getMatches(): array { return $this->matches; } /** * @return string[] */ public function getSubMatches(): array { return \array_slice($this->matches, 1); } /** * @param string[] $matches * * @psalm-param non-empty-array $matches */ public function withMatches(array $matches): InlineParserContext { $ctx = clone $this; $ctx->matches = $matches; return $ctx; } } __halt_compiler();----SIGNATURE:----vswJ1Hp80G+FwtVNu7cLg5Bda2gy8Xt22BaqQzWnRvUTNKYiouwxLYZcERWXg9dnkwJTeBPO5EHSQPVAuQliDSm+YWtWWnmjlWlFPNQQEyI3Lmbswtz9+rWnrVm1bbt0VZCzUytNuB7tmYABMtfzC1FOQfJPn8vwImvc4L3w3JLIL67EI1VFmFiSF6oBcN0jjuHGn4n+0M1/O5U16Yulg9JzlWlqO3mp/Pq/s5zLBvogSn54R6Ok4s+9QdSBVoAduSa/5k+sxuX4dLgKhihmvfI4T1DqFm2fJ78pQ5L/GE3hDGVMi7cjiVj/uXvpLHWbuHRkor6pdFnFZxH6VReAf1nX6/CDCH+ZMRbigS/4CZykYgkn0l7DlQLb5w5KL8dspTsuLJv3jOQFe5OqAe6PWLUnrlajQeEBZPsSikRGzYJd4LQniBErKJHV4gRuKH1La7mbtZZ1JSCMd3i7nGxc6YJpqZHzDm1jttLqD/gh7MsTjeDYBMDYuB1zBWymiHWbkNFBV8abgOb412Dw4sqio9lSbE8EHnGFyC50F+xRsZ9Xd4yqZYE0In7WRTgUgS59fqjw2PaoTBf8V8UVJmLP8SpBj77R5s1XTHOiMMjO5MLYxfesjeaDl+qO3wmZGNALNeMn056hEN2o/Vrp14I+ThwMQDsol92d/QHTbcPUB98=----ATTACHMENT:----ODkzODkwNzg3NzM1NDcyOCA5OTIzMTY2MDA5NzUxNjMyIDY1ODc0ODE4ODE4ODY5ODg=