<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
class JobPDF
{
/**
* @var integer
*/
private $id;
/**
* @var \App\Entity\Job
*/
private $job;
/**
* @var string
*/
private $filename;
/**
* @var \App\Entity\FilePath
*/
private $filePath;
/**
* Get id
*
* @return integer
*/
public function getId()
{
return $this->id;
}
/**
* Set filename
*
* @param string $filename
*
* @return JobWorkFieldImage
*/
public function setFilename($filename)
{
$this->filename = $filename;
return $this;
}
/**
* Get filename
*
* @return string
*/
public function getFilename()
{
return $this->filename;
}
/**
* Set filePath
*
* @param \App\Entity\FilePath $filePath
*
* @return JobWorkFieldImage
*/
public function setFilePath(\App\Entity\FilePath $filePath = null)
{
$this->filePath = $filePath;
return $this;
}
/**
* Get filePath
*
* @return \App\Entity\FilePath
*/
public function getFilePath()
{
return $this->filePath;
}
/**
* Set job.
*
* @param \App\Entity\Job|null $job
*
* @return Job
*/
public function setJob(\App\Entity\Job $job = null)
{
$this->job = $job;
return $this;
}
/**
* Get job.
*
* @return \App\Entity\Job|null
*/
public function getJob()
{
return $this->job;
}
/**
* Get name
*
* @return string
*/
public function getWebPath() {
return $this->filePath->getPathWeb() . $this->filename;
}
/**
* Get name
*
* @return string
*/
public function getSymfonyPath() {
return $this->filePath->getPathSymfony() . $this->filename;
}
}