public function create()
    {
        $now = $this->now();
        $zeroPrice = $this->createZeroAmountMoney();

        /**
         * @var CouponInterface $coupon
         */
        $classNamespace = $this->getEntityNamespace();
        $coupon = new $classNamespace();
        $coupon
            ->setType(ElcodiCouponTypes::TYPE_AMOUNT)
            ->setPrice($zeroPrice)
            ->setAbsolutePrice($zeroPrice)
            ->setMinimumPurchase($zeroPrice)
            ->setEnforcement(ElcodiCouponTypes::ENFORCEMENT_MANUAL)
            ->setUsed(0)
            ->setCount(0)
            ->setPriority(0)
            ->setStackable(false)
            ->setEnabled(false)
            ->setCreatedAt($now)
            ->setValidFrom($now);

        return $coupon;
    }
public function create()
    {
        $now = $this->now();
        $zeroPrice = $this->createZeroAmountMoney();

        /**
         * @var CouponInterface $coupon
         */
        $classNamespace = $this->getEntityNamespace();
        $coupon = new $classNamespace();
        $coupon
            ->setType(ElcodiCouponTypes::TYPE_AMOUNT)
            ->setPrice($zeroPrice)
            ->setAbsolutePrice($zeroPrice)
            ->setMinimumPurchase($zeroPrice)
            ->setEnforcement(ElcodiCouponTypes::ENFORCEMENT_MANUAL)
            ->setUsed(0)
            ->setCount(0)
            ->setPriority(0)
            ->setStackable(false)
            ->setEnabled(false)
            ->setCreatedAt($now)
            ->setValidFrom($now);

        return $coupon;
    }
public function create ( ) { $ now = $ this -> now ( ) ; $ zeroPrice = $ this -> createZeroAmountMoney ( ) ; /**
         * @var CouponInterface $coupon
         */ $ classNamespace = $ this -> getEntityNamespace ( ) ; $ coupon = new $ classNamespace ( ) ; $ coupon -> setType ( ElcodiCouponTypes :: TYPE_AMOUNT ) -> setPrice ( $ zeroPrice ) -> setAbsolutePrice ( $ zeroPrice ) -> setMinimumPurchase ( $ zeroPrice ) -> setEnforcement ( ElcodiCouponTypes :: ENFORCEMENT_MANUAL ) -> setUsed ( 0 ) -> setCount ( 0 ) -> setPriority ( 0 ) -> setStackable ( false ) -> setEnabled ( false ) -> setCreatedAt ( $ now ) -> setValidFrom ( $ now ) ; return $ coupon ; }
Creates an instance of a simple coupon.

This method must return always an empty instance for related entity

@return Coupon Empty entity
Creates an instance of a simple coupon .