184 lines
4 KiB
PHP
184 lines
4 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 $before_speed_image_filename;
|
|
|
|
/**
|
|
* @ORM\Column(type="string", nullable=true)
|
|
*/
|
|
protected $before_plate_num_image_filename;
|
|
|
|
/**
|
|
* @ORM\Column(type="string", nullable=true)
|
|
*/
|
|
protected $before_batt_image_filename;
|
|
|
|
/**
|
|
* @ORM\Column(type="string", nullable=true)
|
|
*/
|
|
protected $after_speed_image_filename;
|
|
|
|
/**
|
|
* @ORM\Column(type="string", nullable=true)
|
|
*/
|
|
protected $after_plate_num_image_filename;
|
|
|
|
/**
|
|
* @ORM\Column(type="string", nullable=true)
|
|
*/
|
|
protected $after_batt_image_filename;
|
|
|
|
/**
|
|
* @ORM\Column(type="array", nullable=true)
|
|
*/
|
|
protected $before_other_images;
|
|
|
|
/**
|
|
* @ORM\Column(type="array", nullable=true)
|
|
*/
|
|
protected $after_other_images;
|
|
|
|
public function __construct()
|
|
{
|
|
$this->before_other_images = new ArrayCollection();
|
|
$this->after_other_images = new ArrayCollection();
|
|
}
|
|
|
|
public function getID()
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
public function setBeforeSpeedImageFilename($image_filename)
|
|
{
|
|
$this->before_speed_image_filename = $image_filename;
|
|
return $this;
|
|
}
|
|
|
|
public function getBeforeSpeedImageFilename()
|
|
{
|
|
return $this->before_speed_image_filename;
|
|
}
|
|
|
|
public function setBeforePlateNumImageFilename($image_filename)
|
|
{
|
|
$this->before_plate_num_image_filename = $image_filename;
|
|
return $this;
|
|
}
|
|
|
|
public function getBeforePlateNumImageFilename()
|
|
{
|
|
return $this->before_plate_num_image_filename;
|
|
}
|
|
|
|
public function setBeforeBattImageFilename($image_filename)
|
|
{
|
|
$this->before_batt_image_filename = $image_filename;
|
|
return $this;
|
|
}
|
|
|
|
public function getBeforeBattImageFilename()
|
|
{
|
|
return $this->before_batt_image_filename;
|
|
}
|
|
public function setAfterSpeedImageFilename($image_filename)
|
|
{
|
|
$this->after_speed_image_filename = $image_filename;
|
|
return $this;
|
|
}
|
|
|
|
public function getAfterSpeedImageFilename()
|
|
{
|
|
return $this->after_speed_image_filename;
|
|
}
|
|
|
|
public function setAfterPlateNumImageFilename($image_filename)
|
|
{
|
|
$this->after_plate_num_image_filename = $image_filename;
|
|
return $this;
|
|
}
|
|
|
|
public function getAfterPlateNumImageFilename()
|
|
{
|
|
return $this->after_plate_num_image_filename;
|
|
}
|
|
|
|
public function setAfterBattImageFilename($image_filename)
|
|
{
|
|
$this->after_batt_image_filename = $image_filename;
|
|
return $this;
|
|
}
|
|
|
|
public function getAfterBattImageFilename()
|
|
{
|
|
return $this->after_batt_image_filename;
|
|
}
|
|
|
|
public function getBeforeOtherImages()
|
|
{
|
|
return $this->before_other_images;
|
|
}
|
|
|
|
public function setBeforeOtherImages(array $images)
|
|
{
|
|
$this->before_other_images = new ArrayCollection();
|
|
|
|
foreach ($images as $image_filename)
|
|
{
|
|
$this->before_other_images->add($image_filename);
|
|
}
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function clearBeforeOtherImages()
|
|
{
|
|
$this->before_other_images = new ArrayCollection();
|
|
return $this;
|
|
}
|
|
|
|
public function getAfterOtherImages()
|
|
{
|
|
return $this->after_other_images;
|
|
}
|
|
|
|
public function setAfterOtherImages(array $images)
|
|
{
|
|
$this->after_other_images = new ArrayCollection();
|
|
|
|
foreach ($images as $image_filename)
|
|
{
|
|
$this->after_other_images->add($image_filename);
|
|
}
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function clearAfterOtherImages()
|
|
{
|
|
$this->after_other_images = new ArrayCollection();
|
|
return $this;
|
|
}
|
|
|
|
}
|