original_string: public static function fromArray(array $cookies, $domain)
      {
          $cookieJar = new self();
          foreach ($cookies as $name => $value) {
              $cookieJar->setCookie(new SetCookie([
                  'Domain'  => $domain,
                  'Name'    => $name,
                  'Value'   => $value,
                  'Discard' => true
              ]));
          }
  
          return $cookieJar;
      }
code: public static function fromArray(array $cookies, $domain)
      {
          $cookieJar = new self();
          foreach ($cookies as $name => $value) {
              $cookieJar->setCookie(new SetCookie([
                  'Domain'  => $domain,
                  'Name'    => $name,
                  'Value'   => $value,
                  'Discard' => true
              ]));
          }
  
          return $cookieJar;
      }
code_tokens: public static function fromArray ( array $ cookies , $ domain ) { $ cookieJar = new self ( ) ; foreach ( $ cookies as $ name => $ value ) { $ cookieJar -> setCookie ( new SetCookie ( [ 'Domain' => $ domain , 'Name' => $ name , 'Value' => $ value , 'Discard' => true ] ) ) ; } return $ cookieJar ; }
docstring: Create a new Cookie jar from an associative array and domain.
  
  @param array  $cookies Cookies to create the jar from
  @param string $domain  Domain to set the cookies to
  
  @return self
docstring_tokens: Create a new Cookie jar from an associative array and domain .