Documentation

DelimiterStack
in package

FinalYes

Table of Contents

Properties

$brackets  : Bracket|null
$missingIndexCache  : SplObjectStorage<DelimiterInterface, int>|WeakMap<DelimiterInterface, int>
$remainingDelimiters  : int
$top  : DelimiterInterface|null

Methods

__construct()  : mixed
getLastBracket()  : Bracket|null
processDelimiters()  : void
push()  : void
removeAll()  : void
removeDelimiter()  : void
removeEarlierMatches()  : void
searchByCharacter()  : DelimiterInterface|null
findEarliest()  : DelimiterInterface|null
getIndex()  : int
removeDelimiterAndNode()  : void
removeDelimitersBetween()  : void

Properties

Methods

__construct()

public __construct([int $maximumStackSize = PHP_INT_MAX ]) : mixed
Parameters
$maximumStackSize : int = PHP_INT_MAX

removeEarlierMatches()

public removeEarlierMatches(string $character) : void

This method is no longer used internally and will be removed in 3.0

Parameters
$character : string

searchByCharacter()

public searchByCharacter(string|array<string|int, string> $characters) : DelimiterInterface|null

This method is no longer used internally and will be removed in 3.0

Parameters
$characters : string|array<string|int, string>
Return values
DelimiterInterface|null

        
On this page

Search results