<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
*
* @ORM\Table(name="delivery_segment")
*/
class Segment
{
public const CATEGORY_1 = 'category_1';
public const CATEGORY_2 = 'category_2';
public const NON_STANDARD = 'non_standard';
public const CATEGORIES = [self::CATEGORY_1, self::CATEGORY_2, self::NON_STANDARD];
/**
* @ORM\Id
*
* @ORM\GeneratedValue
*
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=16, unique=true)
*/
private $code;
/**
* @ORM\Column(type="string", length=16)
*/
private $category;
public function getId()
{
return $this->id;
}
public function setCode($code): void
{
$this->code = $code;
}
public function getCode()
{
return $this->code;
}
public function setCategory($category): void
{
$this->category = $category;
}
public function getCategory()
{
return $this->category;
}
}