phpDocumentor

SpecialOfferDates
in package
implements SpecialOfferDatesInterface

Class SpecialOfferDates

Interfaces, Classes and Traits

SpecialOfferDatesInterface
Interface SpecialOfferDatesInterface

Table of Contents

$added  : DateTime|null
$begins  : DateTime
$expires  : DateTime
$modified  : DateTime|null
__construct()  : mixed
SpecialOfferDates constructor.
added()  : DateTime
Returns the creation date of the special offer.
begins()  : DateTime|null
Returns the expiration date of the special offer.
create()  : SpecialOfferDates
Named constructor of special offer dates.
expires()  : DateTime|null
Returns the expiration date of the special offer.
modified()  : DateTime|null
Returns the last modification date of the special offer.

Properties

Methods

__construct()

SpecialOfferDates constructor.

public __construct(DateTime $expires[, DateTime $added = null ][, DateTime $modified = null ][, DateTime|null $begins = null ]) : mixed
Parameters
$expires : DateTime

Expiration date.

$added : DateTime = null

Creation date.

$modified : DateTime = null

Modification date.

$begins : DateTime|null = null
Return values
mixed

added()

Returns the creation date of the special offer.

public added() : DateTime
Return values
DateTime

Creation date of special offer.

begins()

Returns the expiration date of the special offer.

public begins() : DateTime|null
Return values
DateTime|null

Expiration date of special offer.

create()

Named constructor of special offer dates.

public static create(DateTime $expires[, DateTime $added = null ][, DateTime $modified = null ][, DateTime|null $begins = null ]) : SpecialOfferDates
Parameters
$expires : DateTime

Expiration date.

$added : DateTime = null

Creation date.

$modified : DateTime = null

Modification date.

$begins : DateTime|null = null
Return values
SpecialOfferDates

New instance.

expires()

Returns the expiration date of the special offer.

public expires() : DateTime|null
Return values
DateTime|null

Expiration date of special offer.

modified()

Returns the last modification date of the special offer.

public modified() : DateTime|null
Return values
DateTime|null

Last modification date of special offer.

Search results