src/Entity/System/Warehouse.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity\System;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * Warehouse
  6.  *
  7.  * @ORM\Table(name="ps_warehouse")
  8.  *
  9.  * @ORM\Entity(repositoryClass="App\Repository\System\WarehouseRepository")
  10.  */
  11. class Warehouse
  12. {
  13.     public const DEFAULT_WAREHOUSE_ID 1;
  14.     public const TELLMEGEN_WAREHOUSE_ID 2;
  15.     public const FR_001 3// S71 Octopia
  16.     public const ES_003 4// S74 tyres
  17.     public const IT_001 5// S72 watches
  18.     public const CZ_001 6// S83 Parfums 2
  19.     public const PL_001 7// S91 informatica 4
  20.     public const ES_004 8// D06 Jamones Linaje negro
  21.     public const ES_005 9// D13 Zapatillas Timpers
  22.     public const NL_001 10// S94
  23.     public const ES_006 11// D07 Soportes Meollo
  24.     public const ES_007 12// LG
  25.     public const ES_008 13// M01 Perfumes 5
  26.     public const ES_009 14// D20
  27.     public const DE_001 15// M02
  28.     public const ES_010 16// M06
  29.     public const ES_011 17// M08
  30.     public const ES_012 18// M07
  31.     public const REF_BY_ID = [
  32.         self::DEFAULT_WAREHOUSE_ID => 'ES_001',
  33.         self::TELLMEGEN_WAREHOUSE_ID => 'ES_002',
  34.         self::FR_001 => 'FR_001',
  35.         self::ES_003 => 'ES_003',
  36.         self::IT_001 => 'IT_001',
  37.         self::CZ_001 => 'CZ_001',
  38.         self::PL_001 => 'PL_001',
  39.         self::ES_004 => 'ES_004',
  40.         self::ES_005 => 'ES_005',
  41.         self::ES_006 => 'ES_006',
  42.         self::ES_007 => 'ES_007',
  43.         self::ES_008 => 'ES_008',
  44.         self::ES_009 => 'ES_009',
  45.         self::DE_001 => 'DE_001',
  46.         self::NL_001 => 'NL_001',
  47.         self::ES_010 => 'ES_010',
  48.         self::ES_011 => 'ES_011',
  49.         self::ES_012 => 'ES_012',
  50.     ];
  51.     /**
  52.      * @var int
  53.      *
  54.      * @ORM\Column(name="id", type="integer")
  55.      *
  56.      * @ORM\Id
  57.      *
  58.      * @ORM\GeneratedValue(strategy="AUTO")
  59.      */
  60.     private $id;
  61.     /**
  62.      * @var string
  63.      *
  64.      * @ORM\Column(type="string", length=100)
  65.      */
  66.     private $name;
  67.     /**
  68.      * @var string
  69.      *
  70.      * @ORM\Column(type="string")
  71.      */
  72.     private $reference;
  73.     /**
  74.      * @var string
  75.      *
  76.      * @ORM\Column(type="string", length=2)
  77.      */
  78.     private $country;
  79.     /**
  80.      * @var bool
  81.      *
  82.      * @ORM\Column(type="boolean", options={"default": 0})
  83.      */
  84.     private $orderCancellationAllowed;
  85.     /**
  86.      * @return int
  87.      */
  88.     public function getId(): int
  89.     {
  90.         return $this->id;
  91.     }
  92.     /**
  93.      * @param int $id
  94.      *
  95.      * @return Warehouse
  96.      */
  97.     public function setId(int $id): self
  98.     {
  99.         $this->id $id;
  100.         return $this;
  101.     }
  102.     /**
  103.      * @return string
  104.      */
  105.     public function getName(): string
  106.     {
  107.         return $this->name;
  108.     }
  109.     /**
  110.      * @param string $name
  111.      *
  112.      * @return Warehouse
  113.      */
  114.     public function setName(string $name): self
  115.     {
  116.         $this->name $name;
  117.         return $this;
  118.     }
  119.     /**
  120.      * @return string
  121.      */
  122.     public function getReference(): string
  123.     {
  124.         return $this->reference;
  125.     }
  126.     /**
  127.      * @param string $reference
  128.      *
  129.      * @return Warehouse
  130.      */
  131.     public function setReference(string $reference): self
  132.     {
  133.         $this->reference $reference;
  134.         return $this;
  135.     }
  136.     /**
  137.      * @return string
  138.      */
  139.     public function getCountry(): string
  140.     {
  141.         return $this->country;
  142.     }
  143.     /**
  144.      * @param string $country
  145.      *
  146.      * @return Warehouse
  147.      */
  148.     public function setCountry(string $country): self
  149.     {
  150.         $this->country $country;
  151.         return $this;
  152.     }
  153.     public function isOrderCancellationAllowed(): bool
  154.     {
  155.         return $this->orderCancellationAllowed;
  156.     }
  157.     public function setOrderCancellationAllowed(bool $orderCancellationAllowed): Warehouse
  158.     {
  159.         $this->orderCancellationAllowed $orderCancellationAllowed;
  160.         return $this;
  161.     }
  162. }