SourceCode.ts 439 B

12345678910111213141516171819202122
  1. import { ISourceCode } from './interfaces/ISourceCode';
  2. export class SourceCode implements ISourceCode {
  3. /**
  4. * @type {string}
  5. */
  6. private readonly sourceCode: string;
  7. /**
  8. * @param {string} sourceCode
  9. */
  10. constructor (sourceCode: string) {
  11. this.sourceCode = sourceCode;
  12. }
  13. /**
  14. * @returns {string}
  15. */
  16. public getSourceCode (): string {
  17. return this.sourceCode;
  18. }
  19. }