<?php
namespace Cms\Modules\AlertBundle\Entity\Alert;
use Cms\ModuleBundle\Entity\Draft;
use Cms\Modules\AlertBundle\Model\Alert\AlertData;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Mapping as ORM;
/**
* Class PostDraft
* @package Cms\Modules\AlertBundle\Entity\Alert
*
* @property AlertProxy $proxy
* @property ArrayCollection|AlertRevision[] $revisions
* @property AlertRevision $revision
* @property AlertData $data
*
* @method AlertProxy getProxy()
* @method ArrayCollection|AlertRevision[] getRevisions()
* @method AlertRevision getRevision()
* @method AlertData getData()
* @method AlertDraft setProxy(AlertProxy $value)
* @method AlertDraft setRevision(AlertRevision $value)
* @method AlertDraft setData(AlertData $value)
*
* @ORM\Entity
*/
class AlertDraft extends Draft
{
const TYPE = 'Alert';
const LOCKABLE_TYPE = 'alert_draft';
use AlertDataTrait;
/**
* {@inheritdoc}
*/
public function getDraftTitle()
{
return $this->getData()->getTitle();
}
}