getPreviousPosition() public method

public getPreviousPosition ( ) : integer
return integer
コード例 #1
0
ファイル: Cursor.php プロジェクト: R3alflash/BFAdminCP
 /**
  * @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();
 }