modules/XC/AutoImportBase/src/Model/IntegrationWarehouse.php line 24

Open in your IDE?
  1. <?php
  2. /**
  3.  * Copyright (c) 2011-present Qualiteam software Ltd. All rights reserved.
  4.  * See https://www.x-cart.com/license-agreement.html for license details.
  5.  */
  6. declare(strict_types=1);
  7. namespace XC\AutoImportBase\Model;
  8. use Doctrine\ORM\Mapping as ORM;
  9. /**
  10.  * integrations warehouses
  11.  *
  12.  * @ORM\Entity
  13.  * @ORM\Table (name="integration_warehouse",
  14.  *  uniqueConstraints={
  15.  *          @ORM\UniqueConstraint (name="warehouse_uniqce", columns={"integrationName", "locationId"})
  16.  *      }
  17.  *  )
  18.  */
  19. class IntegrationWarehouse extends \XLite\Model\AEntity
  20. {
  21.     /**
  22.      * @ORM\Id
  23.      * @ORM\GeneratedValue (strategy="AUTO")
  24.      * @ORM\Column         (type="integer", options={"unsigned": true})
  25.      */
  26.     protected int $id;
  27.     /**
  28.      * @ORM\Column (type="string")
  29.      */
  30.     protected string $name;
  31.     /**
  32.      * @ORM\Column (type="string")
  33.      */
  34.     protected string $integrationName;
  35.     /**
  36.      * @ORM\Column (type="json")
  37.      */
  38.     protected array $address;
  39.     /**
  40.      * @ORM\Column (type="string")
  41.      */
  42.     protected string $locationId '';
  43.     public function getName(): string
  44.     {
  45.         return $this->name;
  46.     }
  47.     public function setName(string $name): void
  48.     {
  49.         $this->name $name;
  50.     }
  51.     public function getAddress(): array
  52.     {
  53.         return $this->address;
  54.     }
  55.     public function setAddress(array $address): void
  56.     {
  57.         $this->address $address;
  58.     }
  59.     public function getIntegrationName(): string
  60.     {
  61.         return $this->integrationName;
  62.     }
  63.     public function setIntegrationName(string $integrationName): void
  64.     {
  65.         $this->integrationName $integrationName;
  66.     }
  67.     public function getLocationId(): string
  68.     {
  69.         return $this->locationId;
  70.     }
  71.     public function setLocationId(string $locationId): void
  72.     {
  73.         $this->locationId $locationId;
  74.     }
  75. }