resq/src/Entity/WarrantySerialQueue.php
2022-09-19 08:21:29 +00:00

129 lines
2.3 KiB
PHP

<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use DateTime;
/**
* @ORM\Entity
* @ORM\Table(
* name="warranty_serial_queue",
* )
*/
class WarrantySerialQueue
{
// unique id
/**
* @ORM\Id
* @ORM\Column(type="integer")
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $id;
// date created
/**
* @ORM\Column(type="datetime")
*/
protected $date_create;
// original filename of warranty serial
/**
* @ORM\Column(type="string", length=80, nullable=true)
*/
protected $orig_file_serial;
// warranty serial file that we created
/**
* @ORM\Column(type="string", length=80, nullable=true)
*/
protected $file_serial;
// status
/**
* @ORM\Column(type="string", length=20)
*/
protected $status;
// user that uploaded the serials
/**
* @ORM\Column(type="string", length=32)
*/
protected $api_user;
// file identifier that we send back
/**
* @ORM\Column(type="string", length=21)
*/
protected $file_id;
public function __construct()
{
$this->date_create = new DateTime();
$this->file_serial = null;
$this->orig_file_serial = null;
$this->status = '';
$this->api_user = '';
$this->file_id = '';
}
public function getID()
{
return $this->id;
}
public function setFileSerial($file = null)
{
$this->file_serial = $file;
return $this;
}
public function getFileSerial()
{
return $this->file_serial;
}
public function setStatus($status)
{
$this->status = $status;
return $this;
}
public function getStatus()
{
return $this->status;
}
public function setApiUser($api_user)
{
$this->api_user = $api_user;
return $this;
}
public function getApiUser()
{
return $this->api_user;
}
public function setFileID($file_id)
{
$this->file_id = $file_id;
return $this;
}
public function getFileID()
{
return $this->file_id;
}
public function setOrigFileSerial($file = null)
{
$this->orig_file_serial = $file;
return $this;
}
public function getOrigFileSerial()
{
return $this->orig_file_serial;
}
}