final class SectionBlocks

Checks the blocks of one item section against the ordered block entries of the profile.

Each block matches the first entry, at or after the previous match, whose kinds and text constraint it satisfies; every entry must then occur as often as it allows.

Methods§

public static function check(
    list<Node> $nodes,
    array<string, mixed> $schema,
    string $file,
): void

Checks the blocks of a section.

Parameters

$nodeslist<Node>The blocks under one heading
$schemaarray<string, mixed>The profile's section
$filestringThe definition file

Throws

InvalidInputException When a block matches no entry where none is allowed, or an entry occurs too often or too rarely
Test cases 4
Called from 2
Calls 13

Test cases 11§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 4
Other tests reaching this symbol 7

Relations§

Static calls 2