original_string: public function addCookie($cookie = Array())
      {
          foreach ($cookie as $key => $val) {
              if (isset($this->encryption_key)) {
                  $val = $this->encryptor->encrypt($val);
              }
  
              $this->cookies[$key] = $val;
          }
      }
code: public function addCookie($cookie = Array())
      {
          foreach ($cookie as $key => $val) {
              if (isset($this->encryption_key)) {
                  $val = $this->encryptor->encrypt($val);
              }
  
              $this->cookies[$key] = $val;
          }
      }
code_tokens: public function addCookie ( $ cookie = Array ( ) ) { foreach ( $ cookie as $ key => $ val ) { if ( isset ( $ this -> encryption_key ) ) { $ val = $ this -> encryptor -> encrypt ( $ val ) ; } $ this -> cookies [ $ key ] = $ val ; } }
docstring: Adds a cookie to send to the server
  @param $cookie Array('key' => 'val');
docstring_tokens: Adds a cookie to send to the server