ListParser
in package
implements
BlockParserInterface, ConfigurationAwareInterface
Interfaces, Classes and Traits
- BlockParserInterface
- ConfigurationAwareInterface
- Implement this class to inject the configuration where needed
Table of Contents
- $config : ConfigurationInterface|null
- $listMarkerRegex : string|null
- parse() : bool
- setConfiguration() : void
- calculateListMarkerPadding() : int
- generateListMarkerRegex() : string
Properties
$config
private
ConfigurationInterface|null
$config
$listMarkerRegex
private
string|null
$listMarkerRegex
Methods
parse()
public
parse(ContextInterface $context, Cursor $cursor) : bool
Parameters
- $context : ContextInterface
- $cursor : Cursor
Return values
bool —setConfiguration()
public
setConfiguration(ConfigurationInterface $configuration) : void
Parameters
- $configuration : ConfigurationInterface
Return values
void —calculateListMarkerPadding()
private
calculateListMarkerPadding(Cursor $cursor, int $markerLength) : int
Parameters
- $cursor : Cursor
- $markerLength : int
Return values
int —generateListMarkerRegex()
private
generateListMarkerRegex() : string