classPresentation
final class Presentation
What a Markdown definition says beyond its data: link targets, badge images and citations.
Reading records these per item so that writing the definition back reproduces them, and the links to other items are kept to be checked once every definition is loaded.
Properties§
public array<string, array<string, array<string, string>>> $links = []public array<string, array<string, array<string, array{url: string, title: ?string}>>> $badges = []public array<string, list<array{url: string, label: string}|null>> $citations = []public list<Reference> $references = []Test cases 26§
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 24
CardReaderTest::testCardLeavesOutEvidenceWhenThereIsNoQuotationcallsCardReaderTest::testCardReadsBadgesStatementEvidenceAndFieldscallsCardReaderTest::testCardRejectsACardWithoutAStatementcallsCardReaderTest::testCardRejectsInlineMarkdownInTheStatementcallsCardReaderTest::testCardsAcceptsATabAfterTheHashcallsCardReaderTest::testCardsIgnoresBlocksBeforeTheFirstHeadingcallsCardReaderTest::testCardsReadsEveryCardcallsCardReaderTest::testCardsReadsNothingFromABodyWithoutHeadingscallsCardReaderTest::testCardsRejectsHeadingsNotWrittenAsAtxcallsFieldSectionsTest::testAssignKeepsTheCauseOfAMalformedValuecallsFieldSectionsTest::testAssignReadsOneFieldIntoTheItemcallsFieldSectionsTest::testAssignRejectsAFieldTheItemAlreadyHascallsFieldSectionsTest::testReadAcceptsTheSpellingsOfTheReasonFieldcallsFieldSectionsTest::testReadReadsEveryFieldSectioncallsFieldSectionsTest::testReadReadsNothingFromNoBlockscallsFieldSectionsTest::testReadRejectsMalformedSectionscallsFieldSectionsTest::testReadRemembersLabelBadgescallsFieldSectionsTest::testReadRemembersLinksAndReferencescallsQuotationBlocksTest::testReadLeavesAParagraphWithMoreThanALinkAfterTheQuotationcallsQuotationBlocksTest::testReadLeavesBlocksWithoutQuotationsUnchangedcallsQuotationBlocksTest::testReadPrefixesTheErrorsWithTheFileAndItemcallsQuotationBlocksTest::testReadReadsTheLeadingQuotationsAndTheirAttributionscallsQuotationBlocksTest::testReadRejectsAnAttributionWithAnEmptyDestinationcallsQuotationBlocksTest::testReadRejectsTwoSourceCitationscalls
Relations§
Instantiated in 2
Type declarations 4
- type Requirements\Config\Markdown\CardReader packages/requirements/src/Config/Markdown/CardReader.php:26
- type Requirements\Config\Markdown\FieldSections packages/requirements/src/Config/Markdown/FieldSections.php:21
- type Requirements\Config\Markdown\QuotationBlocks packages/requirements/src/Config/Markdown/QuotationBlocks.php:25
- type Requirements\Config\MarkdownDocument packages/requirements/src/Config/MarkdownDocument.php:35