SpecialOfferInformation

Implements \SpecialOfferInformationInterface

Class SpecialOfferInformation

package

Default

Methods

SpecialOfferInformation constructor.

__construct(\DecimalType $quantity, \DecimalType $price, \BoolType $status, \IdType $productId) 

Arguments

$quantity

\DecimalType

Special offer's quantity.

$price

\DecimalType

Special offer's price.

$status

\BoolType

Special offer's status.

$productId

\IdType

Special offer's product ID.

Named constructor of special offer information.

create(double $quantity, double $price, boolean $status, integer $productId) : \SpecialOfferInformation
static

Arguments

$quantity

double

Special offer's quantity.

$price

double

Special offer's price.

$status

boolean

Special offer's status.

$productId

integer

Special offer's product ID.

Response

\SpecialOfferInformation

New instance.

Returns the special offer's price.

price() : double

Response

double

Price of special offer.

Returns the productId the special offer belongs to.

productId() : integer

Response

integer

ID of the offered 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

quantity

quantity : double
var

Type(s)

double

price

price : double
var

Type(s)

double

status

status : boolean
var

Type(s)

boolean

productId

productId : integer
var

Type(s)

integer