app/Plugin/EccubePaymentLite42/Entity/ConvenienceStore.php line 17

Open in your IDE?
  1. <?php
  2. namespace Plugin\EccubePaymentLite42\Entity;
  3. use Doctrine\Common\Collections\ArrayCollection;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Eccube\Entity\Master\AbstractMasterEntity;
  6. /**
  7.  * @ORM\Table(name="plg_eccube_payment_lite42_convenience_store")
  8.  * @ORM\InheritanceType("SINGLE_TABLE")
  9.  * @ORM\DiscriminatorColumn(name="discriminator_type", type="string", length=255)
  10.  * @ORM\HasLifecycleCallbacks()
  11.  * @ORM\Entity(repositoryClass="Plugin\EccubePaymentLite42\Repository\ConvenienceStoreRepository")
  12.  * @ORM\Cache(usage="NONSTRICT_READ_WRITE")
  13.  */
  14. class ConvenienceStore extends AbstractMasterEntity
  15. {
  16.     const SEVEN_ELEVEN 11;
  17.     const FAMILY_MART 21;
  18.     const LAWSON 31;
  19.     const SEICO_MART 32;
  20.     const MINI_STOP 33;
  21.     const SEVEN_ELEVEN_NAME 'セブンイレブン';
  22.     const FAMILY_MART_NAME 'ファミリーマート';
  23.     const LAWSON_NAME 'ローソン';
  24.     const SEICO_MART_NAME 'セイコーマート';
  25.     const MINI_STOP_NAME 'ミニストップ';
  26.     /**
  27.      * @ORM\Column(name="conveni_code", type="smallint", options={"unsigned":true})
  28.      */
  29.     private $conveni_code;
  30.     /**
  31.      * @ORM\ManyToMany(targetEntity="Plugin\EccubePaymentLite42\Entity\Config", mappedBy="ConvenienceStores")
  32.      */
  33.     private $gmoEpsilonConfigs;
  34.     public function __construct()
  35.     {
  36.         $this->gmoEpsilonConfigs = new ArrayCollection();
  37.     }
  38.     public function addGmoEpsilonConfig(Config $Config)
  39.     {
  40.         $this->gmoEpsilonConfigs[] = $Config;
  41.         return $this;
  42.     }
  43.     public function getConveniCode()
  44.     {
  45.         return $this->conveni_code;
  46.     }
  47.     public function setConveniCode($conveni_code): self
  48.     {
  49.         $this->conveni_code $conveni_code;
  50.         return $this;
  51.     }
  52. }