Parser
in package
implements
ParserInterface
FinalYes
Table of Contents
Interfaces
Methods
- parse() : array<string|int, Entry>
- Parse content into an entry array.
- process() : Result<array<string|int, Entry>, string>
- Convert the raw entries into proper entries.
Methods
parse()
Parse content into an entry array.
public
parse(string $content) : array<string|int, Entry>
Parameters
- $content : string
Tags
Return values
array<string|int, Entry>process()
Convert the raw entries into proper entries.
private
static process(array<string|int, string> $entries) : Result<array<string|int, Entry>, string>
Parameters
- $entries : array<string|int, string>