140 lines
2.7 KiB
PHP
140 lines
2.7 KiB
PHP
<?php
|
|
|
|
namespace App\Entity;
|
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
use Doctrine\Common\Collections\ArrayCollection;
|
|
|
|
/**
|
|
* @ORM\Entity
|
|
* @ORM\Table(name="jo_extra")
|
|
*/
|
|
class JOExtra
|
|
{
|
|
// unique id
|
|
/**
|
|
* @ORM\Id
|
|
* @ORM\Column(type="integer")
|
|
* @ORM\GeneratedValue(strategy="AUTO")
|
|
*/
|
|
protected $id;
|
|
|
|
/**
|
|
* @ORM\Column(type="string", nullable=true)
|
|
*/
|
|
protected $image_1_filename;
|
|
|
|
/**
|
|
* @ORM\Column(type="string", nullable=true)
|
|
*/
|
|
protected $image_2_filename;
|
|
|
|
/**
|
|
* @ORM\Column(type="string", nullable=true)
|
|
*/
|
|
protected $image_3_filename;
|
|
|
|
/**
|
|
* @ORM\Column(type="string", nullable=true)
|
|
*/
|
|
protected $image_4_filename;
|
|
|
|
/**
|
|
* @ORM\Column(type="array", nullable=true)
|
|
*/
|
|
protected $other_images;
|
|
|
|
/**
|
|
* @ORM\Column(type="string", nullable=true)
|
|
*/
|
|
protected $cust_signature;
|
|
|
|
|
|
public function __construct()
|
|
{
|
|
$this->other_images = new ArrayCollection();
|
|
}
|
|
|
|
public function getID()
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
public function setImage1Filename($image_filename)
|
|
{
|
|
$this->image_1_filename = $image_filename;
|
|
return $this;
|
|
}
|
|
|
|
public function getImage1Filename()
|
|
{
|
|
return $this->image_1_filename;
|
|
}
|
|
|
|
public function setImage2Filename($image_filename)
|
|
{
|
|
$this->image_2_filename = $image_filename;
|
|
return $this;
|
|
}
|
|
|
|
public function getImage2Filename()
|
|
{
|
|
return $this->image_2_filename;
|
|
}
|
|
|
|
public function setImage3Filename($image_filename)
|
|
{
|
|
$this->image_3_filename = $image_filename;
|
|
return $this;
|
|
}
|
|
|
|
public function getImage3Filename()
|
|
{
|
|
return $this->image_3_filename;
|
|
}
|
|
|
|
public function setImage4Filename($image_filename)
|
|
{
|
|
$this->image_4_filename = $image_filename;
|
|
return $this;
|
|
}
|
|
|
|
public function getImage4Filename()
|
|
{
|
|
return $this->image_4_filename;
|
|
}
|
|
|
|
public function getOtherImages()
|
|
{
|
|
return $this->other_images;
|
|
}
|
|
|
|
public function setOtherImages(array $images)
|
|
{
|
|
$this->other_images = new ArrayCollection();
|
|
|
|
foreach ($images as $image_filename)
|
|
{
|
|
$this->other_images->add($image_filename);
|
|
}
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function clearOtherImages()
|
|
{
|
|
$this->other_images = new ArrayCollection();
|
|
return $this;
|
|
}
|
|
|
|
public function setCustomerSignature($sig_file)
|
|
{
|
|
$this->cust_signature = $sig_file;
|
|
return $this;
|
|
}
|
|
|
|
public function getCustomerSignature()
|
|
{
|
|
return $this->cust_signature;
|
|
}
|
|
}
|