<?php
/**
* Copyright (c) 2011-present Qualiteam software Ltd. All rights reserved.
* See https://www.x-cart.com/license-agreement.html for license details.
*/
declare(strict_types=1);
namespace XC\AutoImportBase\Model;
use Doctrine\ORM\Mapping as ORM;
/**
* integrations warehouses
*
* @ORM\Entity
* @ORM\Table (name="integration_warehouse",
* uniqueConstraints={
* @ORM\UniqueConstraint (name="warehouse_uniqce", columns={"integrationName", "locationId"})
* }
* )
*/
class IntegrationWarehouse extends \XLite\Model\AEntity
{
/**
* @ORM\Id
* @ORM\GeneratedValue (strategy="AUTO")
* @ORM\Column (type="integer", options={"unsigned": true})
*/
protected int $id;
/**
* @ORM\Column (type="string")
*/
protected string $name;
/**
* @ORM\Column (type="string")
*/
protected string $integrationName;
/**
* @ORM\Column (type="json")
*/
protected array $address;
/**
* @ORM\Column (type="string")
*/
protected string $locationId = '';
public function getName(): string
{
return $this->name;
}
public function setName(string $name): void
{
$this->name = $name;
}
public function getAddress(): array
{
return $this->address;
}
public function setAddress(array $address): void
{
$this->address = $address;
}
public function getIntegrationName(): string
{
return $this->integrationName;
}
public function setIntegrationName(string $integrationName): void
{
$this->integrationName = $integrationName;
}
public function getLocationId(): string
{
return $this->locationId;
}
public function setLocationId(string $locationId): void
{
$this->locationId = $locationId;
}
}