phpDocumentor

SunnyCashCoupon
in package

Class SunnyCashCoupon

Table of Contents

$couponCodeReader  : SunnyCashCouponCodeReaderInterface
$description  : string
$id  : int
$logoStorageWriter  : SunnyCashLogoStorageWriterInterface
$name  : string
$partnerTitle  : string
$shopLogo  : string
$transactionId  : string
$type  : string
$url  : string
__construct()  : mixed
SunnyCashCoupon constructor.
getCode()  : SunnyCashCouponCode
getDescription()  : string
getId()  : int
getName()  : string
getPartnerTitle()  : string
getRawShopLogo()  : string
getShopLogo()  : string
getType()  : string
getUrl()  : string
storeLogo()  : mixed
Stores the coupon logo to the filesystem.
getRandomString()  : string
Generates a random (most probably unique) string.
removePlaceholder()  : string
Removes the "_SOURCE_TRANSACTION_ID_" placeholder from SunnyCash URLs.

Properties

Methods

__construct()

SunnyCashCoupon constructor.

public __construct(SunnyCashLogoStorageWriterInterface $logoStorageWriter, SunnyCashCouponCodeReaderInterface $couponCodeReader, IdType $id, StringType $name, StringType $description, StringType $url, StringType $partnerTitle, StringType $shopLogo, StringType $type) : mixed
Parameters
$logoStorageWriter : SunnyCashLogoStorageWriterInterface
$couponCodeReader : SunnyCashCouponCodeReaderInterface
$id : IdType
$name : StringType
$description : StringType
$url : StringType
$partnerTitle : StringType
$shopLogo : StringType
$type : StringType
Return values
mixed

Stores the coupon logo to the filesystem.

public storeLogo() : mixed
Return values
mixed

getRandomString()

Generates a random (most probably unique) string.

protected getRandomString() : string
Return values
string

removePlaceholder()

Removes the "_SOURCE_TRANSACTION_ID_" placeholder from SunnyCash URLs.

protected removePlaceholder(StringType $url) : string
Parameters
$url : StringType
Return values
string

Search results