import AbstractFactory from "./AbstractFactory" ; import OrderRepository from "./OrderRepository" ; export default class GetOrder { orderRepository : OrderRepository ; constructor ( repositoryFactory ) { this . orderRepository = repositoryFactory . createOrderRepository ( ) ; } execute ( id ) { const order = this . orderRepository . get ( id ) ; return order ; } }