<?php
namespace Cms\Modules\PageBundle\Entity\Page;
use Cms\ModuleBundle\Entity\Draft;
use Cms\Modules\PageBundle\Model\Page\PageData;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Mapping as ORM;
/**
* Class PageDraft
* @package Cms\Modules\PageBundle\Entity\Page
*
* @property PageProxy $proxy
* @property ArrayCollection|PageRevision[] $revisions
* @property PageRevision $revision
* @property PageData $data
*
* @method PageProxy getProxy()
* @method ArrayCollection|PageRevision[] getRevisions()
* @method PageRevision getRevision()
* @method PageData getData()
* @method PageDraft setProxy(PageProxy $value)
* @method PageDraft setRevision(PageRevision $value)
* @method PageDraft setData(PageData $value)
*
* @ORM\Entity
*/
class PageDraft extends Draft
{
const TYPE = 'Page';
const LOCKABLE_TYPE = 'page_draft';
use PageDataTrait;
/**
* {@inheritdoc}
*/
public function getDraftTitle()
{
return $this->getData()->getTitle();
}
}