final class Excerpt

One piece of evidence: a quotation and the selector of the source unit it quotes.

The quotation must equal the complete text of the selected unit.

Properties§

public string $selector
public string $quote

Methods§

public function __construct(public string $selector, public string $quote)

Parameters

$selectorstringIdentifies exactly one unit of the item's source
$quotestringThe complete text of that unit
public static function from(mixed $value): self

Reads an evidence entry of a definition.

Parameters

$valuemixedThe decoded evidence entry

Returns

self The excerpt

Throws

InvalidInputException When the entry has unknown fields or lacks a selector or quote
Test cases 2
Called from 1
Calls 4

Test cases 28§

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

Dedicated tests 2
Other tests reaching this symbol 26

Relations§

Static calls 1
Type declarations 1