import { PropertyReflection } from '@plumier/reflect' ; import { MockOptions } from '../types/mock-options.type' ; import { PropertyDecoratorValue } from './property-decorator-value' ; export interface Property { readonly name : string ; readonly constructorName : string ; readonly decoratorValue : PropertyDecoratorValue ; } export class Property { constructor ( public readonly name , public readonly constructorName , public readonly decoratorValue ) { } public static create ( property , mockDecoratorValue ) { const { name , type : { name : constructorName } , } = property ; return new Property ( name , constructorName , new PropertyDecoratorValue ( mockDecoratorValue ) ) ; } }