public function __construct(InventoryTransaction $inventoryTransaction, DTOBuilderFactoryInterface $dtoBuilderFactory)
 {
     $this->entity = $inventoryTransaction;
     $this->dtoBuilderFactory = $dtoBuilderFactory;
     $this->entityDTO = new InventoryTransactionDTO();
     $this->setId();
     $this->setTime();
     $this->entityDTO->debitQuantity = $this->entity->getDebitQuantity();
     $this->entityDTO->creditQuantity = $this->entity->getCreditQuantity();
     $this->entityDTO->memo = $this->entity->getMemo();
     $this->entityDTO->type = $this->dtoBuilderFactory->getInventoryTransactionTypeDTOBuilder($this->entity->getType())->build();
     $this->entityDTO->inventoryLocation = $this->dtoBuilderFactory->getInventoryLocationDTOBuilder($this->entity->getInventoryLocation())->build();
 }