app/Plugin/EccubePaymentLite42/Entity/MyPageRegularSetting.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_my_page_regular_setting")
  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\MyPageRegularSettingRepository")
  12.  * @ORM\Cache(usage="NONSTRICT_READ_WRITE")
  13.  */
  14. class MyPageRegularSetting extends AbstractMasterEntity
  15. {
  16.     const REGULAR_CYCLE 1;
  17.     const NEXT_DELIVERY_DATE 2;
  18.     const NUMBER_OR_ITEMS 3;
  19.     const CANCELLATION 4;
  20.     const SUSPEND_AND_RESUME 5;
  21.     const SKIP_ONCE 6;
  22.     /**
  23.      * @ORM\ManyToMany(targetEntity="Plugin\EccubePaymentLite42\Entity\Config", mappedBy="myPageRegularSettings")
  24.      */
  25.     private $gmoEpsilonConfigs;
  26.     public function __construct()
  27.     {
  28.         $this->gmoEpsilonConfigs = new ArrayCollection();
  29.     }
  30.     public function addGmoEpsilonConfig(Config $Config)
  31.     {
  32.         $this->gmoEpsilonConfigs[] = $Config;
  33.         return $this;
  34.     }
  35. }