src/Cms/Modules/PageBundle/Entity/Page/PageDraft.php line 29

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