12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- import { IObfuscationResult } from './interfaces/IObfuscationResult';
- export class ObfuscationResult implements IObfuscationResult {
- /**
- * @type {string}
- */
- private obfuscatedCode: string;
- /**
- * @type {string}
- */
- private sourceMap: string;
- /**
- * @param obfuscatedCode
- * @param sourceMap
- */
- constructor (obfuscatedCode: string, sourceMap: string) {
- this.obfuscatedCode = obfuscatedCode;
- this.sourceMap = sourceMap;
- }
- /**
- * @returns {string}
- */
- public getObfuscatedCode (): string {
- return this.obfuscatedCode;
- }
- /**
- * @returns {string}
- */
- public getSourceMap (): string {
- return this.sourceMap;
- }
- /**
- * @returns {string}
- */
- public toString (): string {
- return this.obfuscatedCode;
- }
- }
|