class League / CommonMark / Parser / CursorState
final

CursorState

Encapsulates the current state of a cursor in case you need to rollback later.

WARNING: Do not attempt to use this class for ANYTHING except for type hinting and passing this object back into restoreState(). The constructor, methods, and inner contents may change in any future release without warning!

Properties

private

$state array

Default: null

Methods

public

__construct ( array $state ) : void

Parameters

  • $state array
public

toArray ( ) : array