[d24f17c] | 1 | import { ObjectElement } from '@swagger-api/apidom-core';
|
---|
| 2 | class Info extends ObjectElement {
|
---|
| 3 | constructor(content, meta, attributes) {
|
---|
| 4 | super(content, meta, attributes);
|
---|
| 5 | this.element = 'info';
|
---|
| 6 | this.classes.push('info');
|
---|
| 7 | }
|
---|
| 8 | get title() {
|
---|
| 9 | return this.get('title');
|
---|
| 10 | }
|
---|
| 11 | set title(title) {
|
---|
| 12 | this.set('title', title);
|
---|
| 13 | }
|
---|
| 14 | get description() {
|
---|
| 15 | return this.get('description');
|
---|
| 16 | }
|
---|
| 17 | set description(description) {
|
---|
| 18 | this.set('description', description);
|
---|
| 19 | }
|
---|
| 20 | get termsOfService() {
|
---|
| 21 | return this.get('termsOfService');
|
---|
| 22 | }
|
---|
| 23 | set termsOfService(tos) {
|
---|
| 24 | this.set('termsOfService', tos);
|
---|
| 25 | }
|
---|
| 26 | get contact() {
|
---|
| 27 | return this.get('contact');
|
---|
| 28 | }
|
---|
| 29 | set contact(contactElement) {
|
---|
| 30 | this.set('contact', contactElement);
|
---|
| 31 | }
|
---|
| 32 | get license() {
|
---|
| 33 | return this.get('license');
|
---|
| 34 | }
|
---|
| 35 | set license(licenseElement) {
|
---|
| 36 | this.set('license', licenseElement);
|
---|
| 37 | }
|
---|
| 38 | get version() {
|
---|
| 39 | return this.get('version');
|
---|
| 40 | }
|
---|
| 41 | set version(version) {
|
---|
| 42 | this.set('version', version);
|
---|
| 43 | }
|
---|
| 44 | }
|
---|
| 45 | export default Info; |
---|