\Charcoal\ObjectPublishableInterface

Summary

Methods
Constants
setPublishDate()
publishDate()
setExpiryDate()
expiryDate()
setPublishStatus()
publishStatus()
isPublished()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

setPublishDate()

setPublishDate(string|\Charcoal\Object\DateTime  $publishDate) : \Charcoal\Object\PublishableInterface

Parameters

string|\Charcoal\Object\DateTime $publishDate

The publish date.

Returns

\Charcoal\Object\PublishableInterface

Chainable

publishDate()

publishDate() : \Charcoal\Object\DateTime|null

Returns

\Charcoal\Object\DateTime|null

setExpiryDate()

setExpiryDate(string|\Charcoal\Object\DateTime  $expiryDate) : \Charcoal\Object\PublishableInterface

Parameters

string|\Charcoal\Object\DateTime $expiryDate

The expiry date.

Returns

\Charcoal\Object\PublishableInterface

Chainable

expiryDate()

expiryDate() : \Charcoal\Object\DateTime|null

Returns

\Charcoal\Object\DateTime|null

setPublishStatus()

setPublishStatus(string  $status) : \Charcoal\Object\PublishableInterface

Parameters

string $status

The publish status (can be draft, pending or published).

Returns

\Charcoal\Object\PublishableInterface

Chainable

publishStatus()

publishStatus() : string

Returns

string

isPublished()

isPublished() : boolean

Returns

boolean