src/Cms/Modules/AlertBundle/Entity/Alert/AlertDraft.php line 29

Open in your IDE?
  1. <?php
  2. namespace Cms\Modules\AlertBundle\Entity\Alert;
  3. use Cms\ModuleBundle\Entity\Draft;
  4. use Cms\Modules\AlertBundle\Model\Alert\AlertData;
  5. use Doctrine\Common\Collections\ArrayCollection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8.  * Class PostDraft
  9.  * @package Cms\Modules\AlertBundle\Entity\Alert
  10.  *
  11.  * @property AlertProxy $proxy
  12.  * @property ArrayCollection|AlertRevision[] $revisions
  13.  * @property AlertRevision $revision
  14.  * @property AlertData $data
  15.  *
  16.  * @method AlertProxy getProxy()
  17.  * @method ArrayCollection|AlertRevision[] getRevisions()
  18.  * @method AlertRevision getRevision()
  19.  * @method AlertData getData()
  20.  * @method AlertDraft setProxy(AlertProxy $value)
  21.  * @method AlertDraft setRevision(AlertRevision $value)
  22.  * @method AlertDraft setData(AlertData $value)
  23.  *
  24.  * @ORM\Entity
  25.  */
  26. class AlertDraft extends Draft
  27. {
  28.     const TYPE 'Alert';
  29.     const LOCKABLE_TYPE 'alert_draft';
  30.     use AlertDataTrait;
  31.     /**
  32.      * {@inheritdoc}
  33.      */
  34.     public function getDraftTitle()
  35.     {
  36.         return $this->getData()->getTitle();
  37.     }
  38. }