original_string: public static function createFromServerRequest(ServerRequestInterface $request)
      {
          $data = $request->getCookieParams();
          $cookies = [];
          foreach ($data as $name => $value) {
              $cookies[] = new Cookie($name, $value);
          }
  
          return new static($cookies);
      }
code: public static function createFromServerRequest(ServerRequestInterface $request)
      {
          $data = $request->getCookieParams();
          $cookies = [];
          foreach ($data as $name => $value) {
              $cookies[] = new Cookie($name, $value);
          }
  
          return new static($cookies);
      }
code_tokens: public static function createFromServerRequest ( ServerRequestInterface $ request ) { $ data = $ request -> getCookieParams ( ) ; $ cookies = [ ] ; foreach ( $ data as $ name => $ value ) { $ cookies [ ] = new Cookie ( $ name , $ value ) ; } return new static ( $ cookies ) ; }
docstring: Create a new collection from the cookies in a ServerRequest
  
  @param \Psr\Http\Message\ServerRequestInterface $request The request to extract cookie data from
  @return static
docstring_tokens: Create a new collection from the cookies in a ServerRequest