<?php
namespace App\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
class JobWorkField {
/**
* @var integer
*/
private $id;
/**
* @var string
*/
private $name;
/**
* @var string
*/
private $description;
/**
* @var string
*/
private $defaultImageName;
/**
* @var \App\Entity\JobWorkFieldImage
*/
private $jobWorkFieldImage;
/**
* @var \Doctrine\Common\Collections\Collection
*/
private $jobs;
/**
* Constructor
*/
public function __construct() {
$this->jobs = new \Doctrine\Common\Collections\ArrayCollection();
}
/**
* Get id
*
* @return integer
*/
public function getId() {
return $this->id;
}
/**
* Set name
*
* @param string $name
*
* @return JobWorkField
*/
public function setName($name) {
$this->name = $name;
return $this;
}
/**
* Get name
*
* @return string
*/
public function getName() {
return $this->name;
}
/**
* Set description
*
* @param string $description
*
* @return JobWorkField
*/
public function setDescription($description) {
$this->description = $description;
return $this;
}
/**
* Get description
*
* @return string
*/
public function getDescription() {
return $this->description;
}
/**
* Set jobWorkFieldImage
*
* @param \App\Entity\JobWorkFieldImage $jobWorkFieldImage
*
* @return JobWorkField
*/
public function setJobWorkFieldImage(\App\Entity\JobWorkFieldImage $jobWorkFieldImage = null) {
$this->jobWorkFieldImage = $jobWorkFieldImage;
return $this;
}
/**
* Get jobWorkFieldImage
*
* @return \App\Entity\JobWorkFieldImage
*/
public function getJobWorkFieldImage() {
return $this->jobWorkFieldImage;
}
/**
* Add job
*
* @param \App\Entity\Job $job
*
* @return JobWorkField
*/
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;
}
/**
* @var string|null
*/
private $bicID;
/**
* Set bicID.
*
* @param string|null $bicID
*
* @return JobWorkField
*/
public function setBicID($bicID = null) {
$this->bicID = $bicID;
return $this;
}
/**
* Get bicID.
*
* @return string|null
*/
public function getBicID() {
return $this->bicID;
}
/**
* Set defaultImageName.
*
* @param string $defaultImageName
*
* @return JobWorkField
*/
public function setDefaultImageName($defaultImageName) {
$this->defaultImageName = $defaultImageName;
return $this;
}
/**
* Get defaultImageName.
*
* @return string
*/
public function getDefaultImageName() {
return $this->defaultImageName;
}
public function getImagePath() {
if ($this->jobWorkFieldImage != null) {
$pathWeb = $this->jobWorkFieldImage->getFilePath()->getPathWeb();
$fileName = $this->jobWorkFieldImage->getFileName();
return $pathWeb . $fileName;
}
return '';
}
}