CouponFactory
class CouponFactory
Generate a CouponInterface
Methods
__construct(
ContainerInterface $container)
Constructor
buildCouponFromCode(
string $couponCode)
Build a CouponInterface from its database data
buildCouponFromModel(
Coupon $model)
Build a CouponInterface from its Model data contained in the DataBase
Details
at line 46
__construct(
ContainerInterface $container)
Constructor
at line 61
CouponInterface
buildCouponFromCode(
string $couponCode)
Build a CouponInterface from its database data
at line 117
CouponInterface
buildCouponFromModel(
Coupon $model)
Build a CouponInterface from its Model data contained in the DataBase