public function setLanguage(int $lanId): void
  {
    $this->language                               = Abc::$DL->abcBabelCoreLanguageGetDetails($lanId);
    $this->stack[max(0, count($this->stack) - 1)] = $this->language;
  }
public function setLanguage(int $lanId): void
  {
    $this->language                               = Abc::$DL->abcBabelCoreLanguageGetDetails($lanId);
    $this->stack[max(0, count($this->stack) - 1)] = $this->language;
  }
public function setLanguage ( int $ lanId ) : void { $ this -> language = Abc :: $ DL -> abcBabelCoreLanguageGetDetails ( $ lanId ) ; $ this -> stack [ max ( 0 , count ( $ this -> stack ) - 1 ) ] = $ this -> language ; }
Replaces the current language.

@param int $lanId The ID of the new current language.

@return void

@since 1.0.0
@api
Replaces the current language .