API / Minn\Blocks / Attributes

Attributes final readonly class

Minn\Blocks\Attributes · public/minn/src/Minn/Blocks/Attributes.php · 30 lines

The JSON object a block delimiter carries, read in place. Rewriting one block's attributes must not disturb the rest of the markup, so callers take the object's exact substring rather than reserializing the document.

Public

staticobjectAt(string $markup, int $at): ?string#

The JSON object starting at $at, brace-matched through any strings; null when there is none.