original_string: public function setCookie()
      {
          $language = current($this->getLanguages());
          if ($language !== Yii::$app->language) {
              $this->cookie->value = Yii::$app->language;
              $this->response->getCookies()->add($this->cookie);
          }
      }
code: public function setCookie()
      {
          $language = current($this->getLanguages());
          if ($language !== Yii::$app->language) {
              $this->cookie->value = Yii::$app->language;
              $this->response->getCookies()->add($this->cookie);
          }
      }
code_tokens: public function setCookie ( ) { $ language = current ( $ this -> getLanguages ( ) ) ; if ( $ language !== Yii :: $ app -> language ) { $ this -> cookie -> value = Yii :: $ app -> language ; $ this -> response -> getCookies ( ) -> add ( $ this -> cookie ) ; } }
docstring: Sets the cookie.
docstring_tokens: Sets the cookie .