class League / CommonMark / Parser / CursorState
You are viewing an older version of the documentation. For the latest, please visit 2.4 documentation.
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