original_string: private function setCookie(string $name, $value)
      {
          $expiry = $this->transient ? 0 : (time() + 2629743);
          $sessionParameters = session_get_cookie_params();
          setcookie(
              $name,
              $value,
              $expiry,
              '/',
              $sessionParameters['domain'],
              $this->secure,
              true
          );
      }
code: private function setCookie(string $name, $value)
      {
          $expiry = $this->transient ? 0 : (time() + 2629743);
          $sessionParameters = session_get_cookie_params();
          setcookie(
              $name,
              $value,
              $expiry,
              '/',
              $sessionParameters['domain'],
              $this->secure,
              true
          );
      }
code_tokens: private function setCookie ( string $ name , $ value ) { $ expiry = $ this -> transient ? 0 : ( time ( ) + 2629743 ) ; $ sessionParameters = session_get_cookie_params ( ) ; setcookie ( $ name , $ value , $ expiry , '/' , $ sessionParameters [ 'domain' ] , $ this -> secure , true ) ; }
docstring: Set a cookie with values defined by configuration
  
  @param $name
  @param $value
docstring_tokens: Set a cookie with values defined by configuration