Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/7.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
Nattfarinn committed Mar 26, 2018
2 parents f6c2e24 + b6f1771 commit b12d7ff
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion Persistence/Content/ContentInfo.php
Expand Up @@ -19,7 +19,10 @@ class ContentInfo extends ValueObject
{
const STATUS_DRAFT = 0;
const STATUS_PUBLISHED = 1;
const STATUS_ARCHIVED = 2;
const STATUS_TRASHED = 2;

/** @deprecated Use ContentInfo::STATUS_TRASHED */
const STATUS_ARCHIVED = self::STATUS_TRASHED;

/**
* Content's unique ID.
Expand Down Expand Up @@ -58,6 +61,8 @@ class ContentInfo extends ValueObject
public $currentVersionNo;

/**
* @deprecated Use SPI\ContentInfo::$status (with value ContentInfo::STATUS_PUBLISHED)
*
* Flag indicating if content is currently published.
*
* @var bool
Expand Down Expand Up @@ -115,4 +120,13 @@ class ContentInfo extends ValueObject
* @var mixed
*/
public $mainLocationId;

/**
* Status of the content.
*
* Replaces deprecated SPI\ContentInfo::$isPublished.
*
* @var int
*/
public $status;
}

0 comments on commit b12d7ff

Please sign in to comment.