var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
import { OasResponses } from '../../models/OasResponses';
/**
 * Constructor.
 * @class
 * @extends OasResponses
 * @author eric.wittmann@gmail.com
 */
var Oas20Responses = /** @class */ (function (_super) {
    __extends(Oas20Responses, _super);
    function Oas20Responses() {
        return _super.call(this) || this;
    }
    /**
     * @see io.apicurio.datamodels.openapi.models.OasResponses#createResponse(java.lang.String)
     * @param {string} statusCode
     * @return {OasResponse}
     */
    Oas20Responses.prototype.createResponse = function (statusCode) {
        var response = new Oas20Response(statusCode);
        response._ownerDocument = this.ownerDocument();
        response._parent = this;
        return response;
    };
    return Oas20Responses;
}(OasResponses));
export { Oas20Responses };
Oas20Responses["__class"] = "io.apicurio.datamodels.openapi.v2.models.Oas20Responses";
Oas20Responses["__interfaces"] = ["io.apicurio.datamodels.core.models.IVisitable", "io.apicurio.datamodels.core.models.IIndexedNode"];
import { Oas20Response } from './Oas20Response';
//# sourceMappingURL=Oas20Responses.js.map