League\CommonMark\CursorState::getCurrentPosition PHP Метод

getCurrentPosition() публичный Метод

public getCurrentPosition ( ) : integer
Результат integer
    public function getCurrentPosition()
    {
        return $this->currentPosition;
    }

Usage 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();
 }