コード例 #1
0
ファイル: VoucherEngine.php プロジェクト: spryker/Discount
 /**
  * @param \Generated\Shared\Transfer\DiscountVoucherTransfer $discountVoucherTransfer
  * @param \Orm\Zed\Discount\Persistence\SpyDiscountVoucher $voucherEntity
  *
  * @return void
  */
 protected function hydrateDiscountVoucherEntity(DiscountVoucherTransfer $discountVoucherTransfer, SpyDiscountVoucher $voucherEntity)
 {
     $voucherEntity->fromArray($discountVoucherTransfer->toArray());
     $voucherEntity->setIsActive(true);
 }