SpecialOfferDates

Implements \SpecialOfferDatesInterface

Class SpecialOfferDates

package

Default

Methods

SpecialOfferDates constructor.

__construct(\DateTime $expires, \DateTime $added = null, \DateTime $modified = null, \DateTime|null $begins = null) 

Arguments

$expires

\DateTime

Expiration date.

$added

\DateTime

Creation date.

$modified

\DateTime

Modification date.

$begins

\DateTime|null

Returns the creation date of the special offer.

added() : \DateTime

Response

\DateTime

Creation date of special offer.

Returns the expiration date of the special offer.

begins() : \DateTime|null

Response

\DateTime|null

Expiration date of special offer.

Named constructor of special offer dates.

create(\DateTime $expires, \DateTime $added = null, \DateTime $modified = null, \DateTime|null $begins = null) : \SpecialOfferDates
static

Arguments

$expires

\DateTime

Expiration date.

$added

\DateTime

Creation date.

$modified

\DateTime

Modification date.

$begins

\DateTime|null

Response

\SpecialOfferDates

New instance.

Returns the expiration date of the special offer.

expires() : \DateTime|null

Response

\DateTime|null

Expiration date of special offer.

Returns the last modification date of the special offer.

modified() : \DateTime|null

Response

\DateTime|null

Last modification date of special offer.

Properties

begins

begins : \DateTime
var

Type(s)

\DateTime

expires

expires : \DateTime
var

Type(s)

\DateTime

added

added : \DateTime|null
var

Type(s)

\DateTime|null

modified

modified : \DateTime|null
var

Type(s)

\DateTime|null