false])] #[Assert\Type(type: 'boolean')] #[Assert\NotNull] #[Groups(['personactivity', 'access_detail_personactivity', 'adherent_list_personactivity'])] private $mainActivity = false; /** * @var string */ #[Groups(['template', 'access_detail_personactivity', 'invitations_list_guest'])] private $fullLabelTemplate; /** * Sets id. * * @param int $id * * @return $this */ public function setId($id) { $this->id = $id; return $this; } /** * Gets id. * * @return int */ public function getId() { return $this->id; } /** * Sets activity. * * @param Activity $activity * * @return $this */ public function setActivity(Activity $activity = null) { $this->activity = $activity; return $this; } /** * Gets activity. * * @return Activity */ public function getActivity() { return $this->activity; } /** * Sets speciality. * * @param EquipmentList $speciality * * @return $this */ public function setSpeciality(EquipmentList $speciality = null) { $this->speciality = $speciality; return $this; } /** * Gets speciality. * * @return EquipmentList */ public function getSpeciality() { return $this->speciality; } /** * Sets complementSpeciality. * * @param string $complementSpeciality * * @return $this */ public function setcomplementSpeciality($complementSpeciality) { $this->complementSpeciality = $complementSpeciality; return $this; } /** * Gets complementSpeciality. * * @return string */ public function getcomplementSpeciality() { return $this->complementSpeciality; } /** * Sets mainActivity. * * @param bool $mainActivity * * @return $this */ public function setMainActivity($mainActivity) { $this->mainActivity = $mainActivity; return $this; } /** * Gets mainActivity. * * @return bool */ public function getMainActivity() { return $this->mainActivity; } /** * Set access * * @param \AppBundle\Entity\AccessAndFunction\Access $access * * @return PersonActivity */ public function setAccess(\AppBundle\Entity\AccessAndFunction\Access $access) { $this->access = $access; return $this; } /** * Get access * * @return \AppBundle\Entity\AccessAndFunction\Access */ public function getAccess() { return $this->access; } /** * Gets full label. * * @return array */ public function getFullLabelTemplate() { return [ ['value' => $this->getActivity() ? $this->getActivity()->getName() : '', 'separator' => ' - '], ['value' => $this->getSpeciality() ? $this->getSpeciality()->getDetail() : '', 'translate' => true] ]; } }