<?php
namespace App\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
class JobSector {
/**
* @var integer
*/
private $id;
/**
* @var string
*/
private $name;
/**
* @var string
*/
private $description;
/**
* @var string
*/
private $defaultImageName;
/**
* @var \App\Entity\JobSectorImage
*/
private $image;
/**
* @var \Doctrine\Common\Collections\Collection
*/
private $jobs;
/**
* @var \Doctrine\Common\Collections\Collection
*/
private $companyProfiles;
/**
* Constructor
*/
public function __construct() {
$this->jobs = new \Doctrine\Common\Collections\ArrayCollection();
$this->companyProfiles = new \Doctrine\Common\Collections\ArrayCollection();
}
/**
* Get id
*
* @return integer
*/
public function getId() {
return $this->id;
}
/**
* Set name
*
* @param string $name
*
* @return JobSector
*/
public function setName($name) {
$this->name = $name;
return $this;
}
/**
* Get name
*
* @return string
*/
public function getName() {
return $this->name;
}
/**
* Set image
*
* @param \App\Entity\JobSectorImage $image
*
* @return JobSector
*/
public function setImage(\App\Entity\JobSectorImage $image = null) {
$this->image = $image;
return $this;
}
/**
* Get image
*
* @return \App\Entity\JobSectorImage
*/
public function getImage() {
return $this->image;
}
/**
* Add job
*
* @param \App\Entity\Job $job
*
* @return JobSector
*/
public function addJob(\App\Entity\Job $job) {
$this->jobs[] = $job;
return $this;
}
/**
* Remove job
*
* @param \App\Entity\Job $job
*/
public function removeJob(\App\Entity\Job $job) {
$this->jobs->removeElement($job);
}
/**
* Get jobs
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getJobs() {
return $this->jobs;
}
/**
* Add companyProfile
*
* @param \App\Entity\CompanyProfile $companyProfile
*
* @return JobSector
*/
public function addCompanyProfile(\App\Entity\CompanyProfile $companyProfile) {
$this->companyProfiles[] = $companyProfile;
return $this;
}
/**
* Remove companyProfile
*
* @param \App\Entity\CompanyProfile $companyProfile
*/
public function removeCompanyProfile(\App\Entity\CompanyProfile $companyProfile) {
$this->companyProfiles->removeElement($companyProfile);
}
/**
* Get companyProfiles
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getCompanyProfiles() {
return $this->companyProfiles;
}
/**
* @var string|null
*/
private $bicID;
/**
* Set bicID.
*
* @param string|null $bicID
*
* @return JobSector
*/
public function setBicID($bicID = null) {
$this->bicID = $bicID;
return $this;
}
/**
* Get bicID.
*
* @return string|null
*/
public function getBicID() {
return $this->bicID;
}
/**
* Set description.
*
* @param string $description
*
* @return JobSector
*/
public function setDescription($description) {
$this->description = $description;
return $this;
}
/**
* Get description.
*
* @return string
*/
public function getDescription() {
return $this->description;
}
/**
* Set defaultImageName.
*
* @param string $defaultImageName
*
* @return JobSector
*/
public function setDefaultImageName($defaultImageName)
{
$this->defaultImageName = $defaultImageName;
return $this;
}
/**
* Get defaultImageName.
*
* @return string
*/
public function getDefaultImageName()
{
return $this->defaultImageName;
}
public function getImagePath() {
if ($this->image != null) {
$pathWeb = $this->image->getFilePath()->getPathWeb();
$fileName = $this->image->getFileName();
return $pathWeb . $fileName;
}
return '';
}
public function __toString() {
return $this->name;
}
}