TagQuery final readonly class
Minn\Html\TagQuery · public/minn/src/Minn/Html/TagQuery.php · 37 lines
A tag processor's next_tag() query: a tag name (any case), a class, the nth match to stop at, and whether closers count.
Constants and properties
| prop | readonly ?string $tagName | Promoted from the constructor. |
| prop | readonly ?string $className | Promoted from the constructor. |
| prop | readonly int $offset | Promoted from the constructor. |
| prop | readonly string $closers | Promoted from the constructor. |
Public
| new | __construct(?string $tagName, ?string $className, int $offset, string $closers)# | ||||
| static | from(array $query): self# | The query read from the array a caller passes.
| |||
| method | matches(string $name, int $closer, callable $hasClass): bool# | Whether a tag (by name, closer or not, and a class test) matches, before the offset is counted. |
Nothing matches.