<commit_before><?php
/* This class is part of the XP framework
 *
 * $Id$ 
 */

  $package= 'webservices.rest.srv';

  /**
   * Represents output
   *
   */
  abstract class webservicesrestsrvOutput extends Object {
    protected $status;
    protected $headers= array();
    protected $cookies= array();

    /**
     * Adds a header and returns this instance
     *
     * @param   string name
     * @param   string value
     * @return  self
     */
    public function withHeader($name, $value) {
      $this->headers[$name]= $value;
      return $this;
    }

    /**
     * Adds a cookie and returns this instance
     *
     * @param   scriptlet.Cookie cookie
     * @return  self
     */
    public function withCookie(Cookie $cookie) {
      $this->cookies[]= $cookie;
      return $this;
    }

    /**<commit_msg>- Make ResponseTests work once again # TBD: Maybe the test should use accessors (and the class provide them!)<commit_after><?php
/* This class is part of the XP framework
 *
 * $Id$ 
 */

  $package= 'webservices.rest.srv';

  /**
   * Represents output
   *
   */
  abstract class webservicesrestsrvOutput extends Object {
    public $status;
    public $headers= array();
    public $cookies= array();

    /**
     * Adds a header and returns this instance
     *
     * @param   string name
     * @param   string value
     * @return  self
     */
    public function withHeader($name, $value) {
      $this->headers[$name]= $value;
      return $this;
    }

    /**
     * Adds a cookie and returns this instance
     *
     * @param   scriptlet.Cookie cookie
     * @return  self
     */
    public function withCookie(Cookie $cookie) {
      $this->cookies[]= $cookie;
      return $this;
    }

    /**
{'fraction_non_alphanumeric': 0.11974668969487623, 'fraction_numerical': 0.0, 'mean_word_length': 2.206642066420664, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1559718', 'n_tokens_mistral': 527, 'n_tokens_neox': 513, 'n_words': 157}