Exemplo n.º 1
0
 public function __construct(CartItem $cartItem, DTOBuilderFactoryInterface $dtoBuilderFactory)
 {
     $this->entity = $cartItem;
     $this->dtoBuilderFactory = $dtoBuilderFactory;
     $this->entityDTO = new CartItemDTO();
     $this->setId();
     $this->setTime();
     $this->entityDTO->fullSku = $this->entity->getFullSku();
     $this->entityDTO->quantity = $this->entity->getQuantity();
     $this->entityDTO->shippingWeight = $this->entity->getShippingWeight();
 }