<?php
/**
* Etats.php
* Created by Stéphane Brun
* Date: 2018-04-03 at 11:36
*/
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
* @ORM\Table(name="tetat")
*/
class Etats
{
const FORTHCOMING = 1;
const DISPO = 2;
const MISSED = 3;
const NO_AVAILABLE = 4;
const NOTE = 7;
const DAMAGED = 11;
//ANCIEN ETAT
//
// const OUT = 1;
// const NO_NOTE = 2;
// const REPRINT_NOTE = 3;
// const ON_COMMAND = 4;
// const SOLDE = 5;
// const REPRINT_NO_NOTE = 6;
// const NOTE = 7;
// const NO_PROVIDER = 9;
// const DAMAGED = 11;
// const STOP_COM = 12;
/**
* @ORM\Column(type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $id;
/**
* @ORM\Column(name="etatdesc", type="string", length=50)
*/
protected $description;
/**
* has one Company
*
* @ORM\ManyToOne(targetEntity="App\Entity\Company")
* @ORM\JoinColumn(name="company_id", referencedColumnName="id", nullable=true)
*/
protected $company;
/**
* @return mixed
*/
public function getCompany()
{
return $this->company;
}
/**
* @param Company $company
*/
public function setCompany(Company $company)
{
$this->company = $company;
}
/**
* @return mixed
*/
public function getId()
{
return $this->id;
}
/**
* @return mixed
*/
public function getDescription()
{
return $this->description;
}
/**
* @param mixed $description
*/
public function setDescription($description)
{
$this->description = $description;
}
}