<?php
namespace Cms\Modules\PeopleBundle\Entity\Profile;
use Cms\CoreBundle\Model\Interfaces\OneRosterable\OneRosterableInterface;
use Cms\CoreBundle\Model\Interfaces\OneRosterable\OneRosterableTrait;
use Cms\ModuleBundle\Entity\Proxy;
use Cms\ModuleBundle\Model\Interfaces\Shareable\ShareableInterface;
use Cms\ModuleBundle\Model\Interfaces\Shareable\ShareableTrait;
use Cms\Modules\PeopleBundle\Model\Profile\ProfileData;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Mapping as ORM;
use Cms\ImportBundle\Model\Interfaces\Importable\ImportableInterface;
use Cms\ImportBundle\Model\Interfaces\Importable\ImportableTrait;
/**
* Class ProfileProxy
* @package Cms\Modules\PeopleBundle\Entity\Profile
*
* @property ProfileData $data
* @property ArrayCollection|ProfileHistory[] $histories
* @property ProfileHistory $history
* @property ArrayCollection|ProfileDraft[] $drafts
*
* @method ProfileData getData()
* @method ArrayCollection|ProfileHistory[] getHistories()
* @method ProfileHistory getHistory()
* @method ProfileDraft getDraft()
* @method ArrayCollection|ProfileDraft[] getDrafts()
* @method ProfileProxy setData(ProfileData $value)
* @method ProfileProxy setHistory(ProfileHistory $value)
*
* @ORM\Entity
*/
class ProfileProxy
extends Proxy
implements
ShareableInterface,
ImportableInterface,
OneRosterableInterface
{
const TYPE = 'Profile';
const LOCKABLE_TYPE = 'people';
use ProfileDataTrait;
use ShareableTrait;
use ImportableTrait;
use OneRosterableTrait;
public function __toString()
{
return $this->getData()->getFullName();
}
}