final class QuotationBlocks

Reads the evidence quotations that follow a card's statement.

Each block quotation may be followed by a paragraph holding only its source link.

Methods§

public function __construct(private Presentation $presentation, private Citation|null $source)

Parameters

$presentationPresentationReceives the citation link of each quotation
$sourceCitation|nullResolves citations against the definition's source
public function read(
    list<Node> $blocks,
    string $file,
    string $id,
): array{list<stdClass>, list<Node>}

Reads the leading quotations of the remaining card blocks.

Parameters

$blockslist<Node>The blocks after the statement
$filestringThe definition file
$idstringThe item ID

Returns

array{list<stdClass>, list<Node>} The evidence entries and the blocks after them

Throws

InvalidInputException When a quotation lacks a source, a selector or text, or its citation disagrees
Test cases 6
Called from 1
Calls 5

Private surface 2§

Implementation details, listed for orientation only.

private Presentation $presentation
private Citation|null $source

Test cases 13§

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

Dedicated tests 6
Other tests reaching this symbol 7

Relations§

Instantiated in 1
Method calls 1