<?php
namespace App\Entity\System;
use Doctrine\ORM\Mapping as ORM;
/**
* Warehouse
*
* @ORM\Table(name="ps_warehouse")
*
* @ORM\Entity(repositoryClass="App\Repository\System\WarehouseRepository")
*/
class Warehouse
{
public const DEFAULT_WAREHOUSE_ID = 1;
public const TELLMEGEN_WAREHOUSE_ID = 2;
public const FR_001 = 3; // S71 Octopia
public const ES_003 = 4; // S74 tyres
public const IT_001 = 5; // S72 watches
public const CZ_001 = 6; // S83 Parfums 2
public const PL_001 = 7; // S91 informatica 4
public const ES_004 = 8; // D06 Jamones Linaje negro
public const ES_005 = 9; // D13 Zapatillas Timpers
public const NL_001 = 10; // S94
public const ES_006 = 11; // D07 Soportes Meollo
public const ES_007 = 12; // LG
public const ES_008 = 13; // M01 Perfumes 5
public const ES_009 = 14; // D20
public const DE_001 = 15; // M02
public const ES_010 = 16; // M06
public const ES_011 = 17; // M08
public const ES_012 = 18; // M07
public const REF_BY_ID = [
self::DEFAULT_WAREHOUSE_ID => 'ES_001',
self::TELLMEGEN_WAREHOUSE_ID => 'ES_002',
self::FR_001 => 'FR_001',
self::ES_003 => 'ES_003',
self::IT_001 => 'IT_001',
self::CZ_001 => 'CZ_001',
self::PL_001 => 'PL_001',
self::ES_004 => 'ES_004',
self::ES_005 => 'ES_005',
self::ES_006 => 'ES_006',
self::ES_007 => 'ES_007',
self::ES_008 => 'ES_008',
self::ES_009 => 'ES_009',
self::DE_001 => 'DE_001',
self::NL_001 => 'NL_001',
self::ES_010 => 'ES_010',
self::ES_011 => 'ES_011',
self::ES_012 => 'ES_012',
];
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
*
* @ORM\Id
*
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @var string
*
* @ORM\Column(type="string", length=100)
*/
private $name;
/**
* @var string
*
* @ORM\Column(type="string")
*/
private $reference;
/**
* @var string
*
* @ORM\Column(type="string", length=2)
*/
private $country;
/**
* @var bool
*
* @ORM\Column(type="boolean", options={"default": 0})
*/
private $orderCancellationAllowed;
/**
* @return int
*/
public function getId(): int
{
return $this->id;
}
/**
* @param int $id
*
* @return Warehouse
*/
public function setId(int $id): self
{
$this->id = $id;
return $this;
}
/**
* @return string
*/
public function getName(): string
{
return $this->name;
}
/**
* @param string $name
*
* @return Warehouse
*/
public function setName(string $name): self
{
$this->name = $name;
return $this;
}
/**
* @return string
*/
public function getReference(): string
{
return $this->reference;
}
/**
* @param string $reference
*
* @return Warehouse
*/
public function setReference(string $reference): self
{
$this->reference = $reference;
return $this;
}
/**
* @return string
*/
public function getCountry(): string
{
return $this->country;
}
/**
* @param string $country
*
* @return Warehouse
*/
public function setCountry(string $country): self
{
$this->country = $country;
return $this;
}
public function isOrderCancellationAllowed(): bool
{
return $this->orderCancellationAllowed;
}
public function setOrderCancellationAllowed(bool $orderCancellationAllowed): Warehouse
{
$this->orderCancellationAllowed = $orderCancellationAllowed;
return $this;
}
}