League\CommonMark\CursorState::getFirstNonSpaceCache PHP Method

getFirstNonSpaceCache() public method

public getFirstNonSpaceCache ( ) : integer | null
return integer | null
    public function getFirstNonSpaceCache()
    {
        return $this->firstNonSpaceCache;
    }

Usage Example

Example #1
0
 /**
  * @param CursorState $state
  */
 public function restoreState(CursorState $state)
 {
     $this->line = $state->getLine();
     $this->length = $state->getLength();
     $this->currentPosition = $state->getCurrentPosition();
     $this->previousPosition = $state->getPreviousPosition();
     $this->firstNonSpaceCache = $state->getFirstNonSpaceCache();
 }