<?phpnamespace App\Entity;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;class JobDailyRoutine { /** * @var int */ private $id; /** * @var \App\Entity\Media */ private $avatarPicture; /** * @var String */ private $avatarPosition; /** * @var \Doctrine\Common\Collections\Collection */ private $dailyEntries; /** * @var \Doctrine\Common\Collections\Collection */ private $jobMappings; /** * @var \DateTime */ private $showAfter; /** * @var String */ private $routineTitle; /** * @var String */ private $videoUrl; /** * @var \App\Entity\Media */ private $routinePicture; /** * @var \App\Entity\JobDailyRoutineCategory */ private $jobDailyRoutineCategory; /** * @var \App\Entity\SchoolProfile */ private $schoolProfile; /** * @var \App\Entity\Media */ private $routinePicture2; /** * @var \App\Entity\Color */ private $color; /** * @var \App\Entity\Icon */ private $icon; /** * @var \App\Entity\IconColor */ private $iconColor; /** * @var \Doctrine\Common\Collections\Collection */ private $interestFields; /** * @var \Doctrine\Common\Collections\Collection */ private $tags; /** * @var \App\Entity\KeyValue */ private $gradient; /** * @var boolean */ private $preSelected = false; /** * @var \DateTime */ private $createdAt; /** * Constructor */ public function __construct() { $this->dailyEntries = new ArrayCollection(); $this->jobMappings = new ArrayCollection(); $this->interestFields = new ArrayCollection(); $this->tags = new ArrayCollection(); $this->preSelected = true; } /** * Get id * * @return integer */ public function getId() { return $this->id; } /** * Add dailyEntry. * * @param \App\Entity\JobDailyRoutineEntry $dailyEntry * * @return JobDailyRoutine */ public function addDailyEntry(\App\Entity\JobDailyRoutineEntry $dailyEntry) { $this->dailyEntries[] = $dailyEntry; return $this; } /** * Remove dailyEntry. * * @param \App\Entity\JobDailyRoutineEntry $dailyEntry * * @return boolean TRUE if this collection contained the specified element, FALSE otherwise. */ public function removeDailyEntry(\App\Entity\JobDailyRoutineEntry $dailyEntry) { return $this->dailyEntries->removeElement($dailyEntry); } /** * Get dailyEntries. * * @return \Doctrine\Common\Collections\Collection */ public function getDailyEntries() { return $this->dailyEntries; } public function countEntries() { return count($this->dailyEntries); } /** * Set showAfter. * * @param \DateTime $showAfter * * @return JobDailyRoutine */ public function setShowAfter($showAfter) { $this->showAfter = $showAfter; return $this; } /** * Get showAfter. * * @return \DateTime */ public function getShowAfter() { return $this->showAfter; } /** * Set routinePicture. * * @param \App\Entity\Media|null $routinePicture * * @return JobDailyRoutine */ public function setRoutinePicture(\App\Entity\Media $routinePicture = null) { $this->routinePicture = $routinePicture; return $this; } /** * Get routinePicture. * * @return \App\Entity\Media|null */ public function getRoutinePicture() { return $this->routinePicture; } /** * Set jobDailyRoutineCategory. * * @param \App\Entity\JobDailyRoutineCategory|null $jobDailyRoutineCategory * * @return JobDailyRoutine */ public function setJobDailyRoutineCategory(\App\Entity\JobDailyRoutineCategory $jobDailyRoutineCategory = null) { $this->jobDailyRoutineCategory = $jobDailyRoutineCategory; return $this; } /** * Get jobDailyRoutineCategory. * * @return \App\Entity\JobDailyRoutineCategory|null */ public function getJobDailyRoutineCategory() { return $this->jobDailyRoutineCategory; } /** * Set schoolProfile. * * @param \App\Entity\SchoolProfile|null $schoolProfile * * @return JobDailyRoutine */ public function setSchoolProfile(\App\Entity\SchoolProfile $schoolProfile = null) { $this->schoolProfile = $schoolProfile; return $this; } /** * Get schoolProfile. * * @return \App\Entity\SchoolProfile|null */ public function getSchoolProfile() { return $this->schoolProfile; } /** * Set routinePicture2. * * @param \App\Entity\Media|null $routinePicture2 * * @return JobDailyRoutine */ public function setRoutinePicture2(\App\Entity\Media $routinePicture2 = null) { $this->routinePicture2 = $routinePicture2; return $this; } /** * Get routinePicture2. * * @return \App\Entity\Media|null */ public function getRoutinePicture2() { return $this->routinePicture2; } /** * Set avatarPicture. * * @param \App\Entity\Media|null $avatarPicture * * @return JobDailyRoutine */ public function setAvatarPicture(\App\Entity\Media $avatarPicture = null) { $this->avatarPicture = $avatarPicture; return $this; } /** * Get avatarPicture. * * @return \App\Entity\Media|null */ public function getAvatarPicture() { return $this->avatarPicture; } /** * Set avatarPosition * * @param string $avatarPosition * * @return JobDailyRoutine */ public function setAvatarPosition($avatarPosition) { $this->avatarPosition = $avatarPosition; return $this; } /** * Get avatarPosition * * @return string */ public function getAvatarPosition() { return $this->avatarPosition; } /** * Set color. * * @param \App\Entity\Color|null $color * * @return JobDailyRoutine */ public function setColor(\App\Entity\Color $color = null) { $this->color = $color; return $this; } /** * Get color. * * @return \App\Entity\Color|null */ public function getColor() { return $this->color; } /** * Set icon. * * @param \App\Entity\Icon|null $icon * * @return JobDailyRoutine */ public function setIcon(\App\Entity\Icon $icon = null) { $this->icon = $icon; return $this; } /** * Get icon. * * @return \App\Entity\Icon|null */ public function getIcon() { return $this->icon; } /** * Set iconColor. * * @param \App\Entity\Color|null $iconColor * * @return JobDailyRoutine */ public function setIconColor(\App\Entity\Color $iconColor = null) { $this->iconColor = $iconColor; return $this; } /** * Get iconColor. * * @return \App\Entity\Color|null */ public function getIconColor() { return $this->iconColor; } /** * Add tag. * * @param \App\Entity\Tag $tag * * @return JobDailyRoutine */ public function addTag(\App\Entity\Tag $tag) { $this->tags[] = $tag; return $this; } /** * Remove tag. * * @param \App\Entity\Tag $tag * * @return boolean TRUE if this collection contained the specified element, FALSE otherwise. */ public function removeTag(\App\Entity\Tag $tag) { return $this->tags->removeElement($tag); } /** * Get tags. * * @return \Doctrine\Common\Collections\Collection */ public function getTags() { return $this->tags; } public function getGradient() { return $this->gradient; } public function setGradient($gradient) { $this->gradient = $gradient; } public function getRoutineTitle() { return $this->routineTitle; } public function getVideoUrl() { return $this->videoUrl; } public function setRoutineTitle($routineTitle) { $this->routineTitle = $routineTitle; } public function setVideoUrl($videoUrl) { $this->videoUrl = $videoUrl; } public function getJobMappings() { return $this->jobMappings; } public function setJobMappings($jobMappings) { $this->jobMappings = $jobMappings; } public function addJobMapping($jobMapping) { $this->jobMappings[] = $jobMapping; return $this; } public function getPreSelected() { return $this->preSelected; } public function setPreSelected($preSelected) { $this->preSelected = $preSelected; } public function getInterestFields(): \Doctrine\Common\Collections\Collection { return $this->interestFields; } public function setInterestFields(\Doctrine\Common\Collections\Collection $interestFields): void { $this->interestFields = $interestFields; } /** * Set createdAt. * * @param \DateTime $createdAt * * @return JobDailyRoutine */ public function setCreatedAt($createdAt) { $this->createdAt = $createdAt; return $this; } /** * Get createdAt. * * @return \DateTime */ public function getCreatedAt() { return $this->createdAt; } public function getBicID() { if (count($this->jobMappings) > 0) { /* @var $jobMapping App\Entity\JobMapping */ $jobMapping = $this->jobMappings[0]; $job = $jobMapping->getJob(); return $job->getBicID(); } return 0; } public function getJobID() { if (count($this->jobMappings) > 0) { /* @var $jobMapping App\Entity\JobMapping */ $jobMapping = $this->jobMappings[0]; $job = $jobMapping->getJob(); return $job->getId(); } return 0; } public function getJobName() { if (empty($this->jobMappings)) { return ''; } $job = $this->jobMappings[0]->getJob(); return $job->getName(); }}