src/Entity/System/SynchronisedShopStatus.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Entity\System;
  3. use Doctrine\Common\Collections\ArrayCollection;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * SynchronisedShopStatus
  7.  *
  8.  * @ORM\Table(name="ps_syncronised_shop_status")
  9.  *
  10.  * @ORM\Entity(repositoryClass="App\Repository\System\SynchronisedShopStatusRepository")
  11.  */
  12. class SynchronisedShopStatus
  13. {
  14.     public const ENTER_DETAILS_STATUS 1;
  15.     public const CHECKING_REQUIREMENTS_STATUS 2;
  16.     public const WRONG_REQUIREMENTS_STATUS 3;
  17.     public const INSTALLATION_IN_PROGRESS 5;
  18.     public const SHOP_FINISHED 6;
  19.     public const SHOP_FINISHED_UNDELIVERED 7;
  20.     public const SHOP_ON_HOLD 8;
  21.     public const SHOP_NOT_SYNCHRONIZED 9;
  22.     public const PREPARING_INSTALLATION 12;
  23.     public const CONFIGURING_SERVER 37;
  24.     public const CONFIGURING_SHOP 62;
  25.     public const CHECKING_REQUIREMENTS_NAME 'Comprobando Requisitos';
  26.     public const INSTALLATION_IN_PROGRESS_NAME 'Instalación en proceso';
  27.     public const INSERT_SHOP_DATA_NAME 'Introduzca los datos de su tienda';
  28.     public const WRONG_REQUIREMENTS_NAME 'Requisitos Erroneos';
  29.     public const STATUSES_ID_MARKED_AS_ACTIVE = [
  30.         self::ENTER_DETAILS_STATUS,
  31.         self::CHECKING_REQUIREMENTS_STATUS,
  32.         self::WRONG_REQUIREMENTS_STATUS,
  33.         self::INSTALLATION_IN_PROGRESS,
  34.         self::SHOP_FINISHED_UNDELIVERED,
  35.     ];
  36.     /**
  37.      * @var int
  38.      *
  39.      * @ORM\Id
  40.      *
  41.      * @ORM\Column(type="integer", name="id_sincronate_shop_status",length=10)
  42.      */
  43.     private $id;
  44.     /**
  45.      * @var string
  46.      *
  47.      * @ORM\Column(type="string", length=100, nullable=false)
  48.      */
  49.     private $name;
  50.     /**
  51.      * @var SynchronisedShopStatusLanguage[]|ArrayCollection<int, SynchronisedShopStatusLanguage>
  52.      *
  53.      * @ORM\OneToMany(targetEntity="App\Entity\System\SynchronisedShopStatusLanguage", mappedBy="status")
  54.      */
  55.     private $languages;
  56.     /**
  57.      * @return int
  58.      */
  59.     public function getId(): int
  60.     {
  61.         return $this->id;
  62.     }
  63.     /**
  64.      * @param int $id
  65.      *
  66.      * @return SynchronisedShopStatus
  67.      */
  68.     public function setId(int $id): SynchronisedShopStatus
  69.     {
  70.         $this->id $id;
  71.         return $this;
  72.     }
  73.     /**
  74.      * @return string|null
  75.      */
  76.     public function getName(): ?string
  77.     {
  78.         return $this->name;
  79.     }
  80.     /**
  81.      * @param string|null $name
  82.      *
  83.      * @return SynchronisedShopStatus
  84.      */
  85.     public function setName(?string $name): SynchronisedShopStatus
  86.     {
  87.         $this->name $name;
  88.         return $this;
  89.     }
  90.     /**
  91.      * @return SynchronisedShopStatusLanguage[]|ArrayCollection<int, SynchronisedShopStatusLanguage>
  92.      */
  93.     public function getLanguages()
  94.     {
  95.         return $this->languages;
  96.     }
  97.     /**
  98.      * @param SynchronisedShopStatusLanguage[]|ArrayCollection<int, SynchronisedShopStatusLanguage> $languages
  99.      *
  100.      * @return $this
  101.      */
  102.     public function setLanguages($languages): SynchronisedShopStatus
  103.     {
  104.         $this->languages $languages;
  105.         return $this;
  106.     }
  107. }