src/Cms/Modules/PeopleBundle/Entity/Profile/ProfileProxy.php line 35

Open in your IDE?
  1. <?php
  2. namespace Cms\Modules\PeopleBundle\Entity\Profile;
  3. use Cms\CoreBundle\Model\Interfaces\OneRosterable\OneRosterableInterface;
  4. use Cms\CoreBundle\Model\Interfaces\OneRosterable\OneRosterableTrait;
  5. use Cms\ModuleBundle\Entity\Proxy;
  6. use Cms\ModuleBundle\Model\Interfaces\Shareable\ShareableInterface;
  7. use Cms\ModuleBundle\Model\Interfaces\Shareable\ShareableTrait;
  8. use Cms\Modules\PeopleBundle\Model\Profile\ProfileData;
  9. use Doctrine\Common\Collections\ArrayCollection;
  10. use Doctrine\ORM\Mapping as ORM;
  11. use Cms\ImportBundle\Model\Interfaces\Importable\ImportableInterface;
  12. use Cms\ImportBundle\Model\Interfaces\Importable\ImportableTrait;
  13. /**
  14.  * Class ProfileProxy
  15.  * @package Cms\Modules\PeopleBundle\Entity\Profile
  16.  *
  17.  * @property ProfileData $data
  18.  * @property ArrayCollection|ProfileHistory[] $histories
  19.  * @property ProfileHistory $history
  20.  * @property ArrayCollection|ProfileDraft[] $drafts
  21.  *
  22.  * @method ProfileData getData()
  23.  * @method ArrayCollection|ProfileHistory[] getHistories()
  24.  * @method ProfileHistory getHistory()
  25.  * @method ProfileDraft getDraft()
  26.  * @method ArrayCollection|ProfileDraft[] getDrafts()
  27.  * @method ProfileProxy setData(ProfileData $value)
  28.  * @method ProfileProxy setHistory(ProfileHistory $value)
  29.  *
  30.  * @ORM\Entity
  31.  */
  32. class ProfileProxy
  33.     extends Proxy
  34.     implements
  35.         ShareableInterface,
  36.         ImportableInterface,
  37.         OneRosterableInterface
  38. {
  39.     const TYPE 'Profile';
  40.     const LOCKABLE_TYPE 'people';
  41.     use ProfileDataTrait;
  42.     use ShareableTrait;
  43.     use ImportableTrait;
  44.     use OneRosterableTrait;
  45.     public function __toString()
  46.     {
  47.         return $this->getData()->getFullName();
  48.     }
  49. }