public function __construct(AbstractCartPriceRuleItem $item, DTOBuilderFactoryInterface $dtoBuilderFactory)
 {
     $this->entity = $item;
     $this->dtoBuilderFactory = $dtoBuilderFactory;
     $this->entityDTO = $this->getEntityDTO();
     $this->setId();
     $this->setTime();
     $this->entityDTO->quantity = $this->entity->getQuantity();
 }
 public static function loadValidatorMetadata(ClassMetadata $metadata)
 {
     parent::loadValidatorMetadata($metadata);
 }
Esempio n. 3
0
 public function addItem(AbstractCartPriceRuleItem $item)
 {
     $item->setCartPriceRule($this);
     $this->cartPriceRuleItems[] = $item;
 }