DelimiterProcessorCollection
in package
implements
DelimiterProcessorCollectionInterface
Interfaces, Classes and Traits
Table of Contents
- $processorsByChar : array<string, DelimiterProcessorInterface>|array<string|int, DelimiterProcessorInterface>
- add() : void
- Add the given delim processor to the collection
- getDelimiterCharacters() : array<string|int, string>
- Returns an array of delimiter characters who have associated processors
- getDelimiterProcessor() : DelimiterProcessorInterface|null
- Returns the delim processor which handles the given character if one exists
- addDelimiterProcessorForChar() : void
- addStaggeredDelimiterProcessorForChar() : void
Properties
$processorsByChar
private
array<string, DelimiterProcessorInterface>|array<string|int, DelimiterProcessorInterface>
$processorsByChar
= []
Methods
add()
Add the given delim processor to the collection
public
add(DelimiterProcessorInterface $processor) : void
Parameters
- $processor : DelimiterProcessorInterface
-
The delim processor to add
Return values
void —getDelimiterCharacters()
Returns an array of delimiter characters who have associated processors
public
getDelimiterCharacters() : array<string|int, string>
Return values
array<string|int, string> —getDelimiterProcessor()
Returns the delim processor which handles the given character if one exists
public
getDelimiterProcessor(string $char) : DelimiterProcessorInterface|null
Parameters
- $char : string
Return values
DelimiterProcessorInterface|null —addDelimiterProcessorForChar()
private
addDelimiterProcessorForChar(string $delimiterChar, DelimiterProcessorInterface $processor) : void
Parameters
- $delimiterChar : string
- $processor : DelimiterProcessorInterface
Return values
void —addStaggeredDelimiterProcessorForChar()
private
addStaggeredDelimiterProcessorForChar(string $opening, DelimiterProcessorInterface $old, DelimiterProcessorInterface $new) : void
Parameters
- $opening : string
- $old : DelimiterProcessorInterface
- $new : DelimiterProcessorInterface