resq/src/Entity/WarrantySerial.php

102 lines
1.7 KiB
PHP

<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use DateTime;
use Exception;
/**
* @ORM\Entity
* @ORM\Table(
* name="warranty_serial",
* )
*/
class WarrantySerial
{
// unique id - serial number
/**
* @ORM\Id
* @ORM\Column(type="string", length=20)
*/
protected $id;
// date serial was entered
/**
* @ORM\Column(type="datetime")
*/
protected $date_create;
// battery sku
/**
* @ORM\Column(type="string", length=50, nullable=true)
*/
protected $sku;
// internal battery id - points to battery table
/**
* @ORM\Column(type="integer", nullable=true)
*/
protected $battery_id;
// source of the warranty serial record
// list - motiv, crm
/**
* @ORM\Column(type="string", length=50, nullable=true)
*/
protected $source;
public function __construct()
{
$this->date_create = new DateTime();
}
public function setID($id)
{
$this->id = $id;
return $this;
}
public function getID()
{
return $this->id;
}
public function getDateCreate()
{
return $this->date_create;
}
public function setSKU($sku)
{
$this->sku = $sku;
return $this;
}
public function getSKU()
{
return $this->sku;
}
public function setBatteryID($id)
{
$this->battery_id = $id;
return $this;
}
public function getBatteryID()
{
return $this->battery_id;
}
public function setSource($source)
{
$this->source = $source;
return $this;
}
public function getSource()
{
return $this->source;
}
}