SpecialOffer

Implements \SpecialOfferInterface

package

Default

Methods

SpecialOffer constructor.

__construct(\SpecialOfferIdInterface $specialOfferId, \SpecialOfferInformationInterface $information, \SpecialOfferDatesInterface $dates) 

Arguments

$specialOfferId

\SpecialOfferIdInterface

Ids of special offer entity.

$information

\SpecialOfferInformationInterface

Special offer information.

$dates

\SpecialOfferDatesInterface

Special offer dates.

Returns the creation date of the special offer.

added() : \DateTime

Response

\DateTime

Creation date of special offer.

Returns the start date of the special offer.

begins() : \DateTime

Response

\DateTime

Start date of special offer.

create

create(\SpecialOfferIdInterface $specialOfferId, \SpecialOfferInformationInterface $information, \SpecialOfferDatesInterface $dates) : \SpecialOffer
static

Arguments

$specialOfferId

\SpecialOfferIdInterface

Ids of special offer entity.

$information

\SpecialOfferInformationInterface

Special offer information.

$dates

\SpecialOfferDatesInterface

Special offer dates.

Response

\SpecialOffer

New instance.

Returns the expiration date of the special offer.

expires() : \DateTime

Response

\DateTime

Expiration date of special offer.

Returns the special offer id.

id() : integer|null

Response

integer|null

Id of special offer.

Returns the last modification date of the special offer.

modified() : \DateTime

Response

\DateTime

Last modification date of special offer.

Returns the special offer's price.

price() : double

Response

double

Price of special offer.

Returns the product id of the special.

productId() : integer

Response

integer

Id of special offer's product.

Returns the quantity of the special offer.

quantity() : double

Response

double

Special offer's quantity.

Returns the special offer status.

status() : boolean

Response

boolean

True if special offer is active.

Properties

specialOfferId

specialOfferId : \SpecialOfferIdInterface

information

information : \SpecialOfferInformationInterface

dates

dates : \SpecialOfferDatesInterface