import { IParameterDefinition } from "./IParameterDefinition" ; import { IParameterDefinitionsSource } from "./IParameterDefinitionsSource" ; export class SimpleParameterDefinitionsSource implements IParameterDefinitionsSource { private _parameterDefinitions : IParameterDefinition [ ] = [ ] ; public constructor ( parameterDefinitions = [ ] ) { this . setParameterDefinitions ( parameterDefinitions ) ; } public get parameterDefinitions ( ) : IParameterDefinition [ ] { return this . _parameterDefinitions ; } public setParameterDefinitions ( parameterDefinitions ) { this . _parameterDefinitions = parameterDefinitions . slice ( ) ; } }