CouponLocker
FinalYes
Table of Contents
Methods
- __construct() : mixed
- __destruct() : mixed
- getInstance() : self
- isLocked() : bool
- isNotLocked() : bool
- lock() : void
- unlock() : void
- unlockAll() : void
Methods
__construct()
public
__construct() : mixed
__destruct()
public
__destruct() : mixed
getInstance()
public
static getInstance() : self
Return values
selfisLocked()
public
isLocked(string $coupon) : bool
Parameters
- $coupon : string
Return values
boolisNotLocked()
public
isNotLocked(string $coupon) : bool
Parameters
- $coupon : string
Return values
boollock()
public
lock(string $coupon) : void
Parameters
- $coupon : string
unlock()
public
unlock(string $coupon) : void
Parameters
- $coupon : string
unlockAll()
public
unlockAll() : void