app/Plugin/EccubePaymentLite42/Entity/IpBlackList.php line 16

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\AbstractEntity;
  6. /**
  7.  * @ORM\Table(name="plg_eccube_payment_lite42_ip_black_list")
  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\IpBlackListRepository")
  12.  */
  13. class IpBlackList extends AbstractEntity
  14. {
  15.     /**
  16.      * @ORM\Column(name="id", type="integer", options={"unsigned":true})
  17.      * @ORM\Id
  18.      * @ORM\GeneratedValue(strategy="IDENTITY")
  19.      */
  20.     private $id;
  21.     /**
  22.      * @ORM\ManyToMany(targetEntity="Plugin\EccubePaymentLite42\Entity\Config", mappedBy="ipBlackList")
  23.      */
  24.     private $gmoEpsilonConfigs;
  25.     /**
  26.      * @ORM\Column(name="ip_address", type="string", length=255)
  27.      */
  28.     private $ip_address;
  29.     /**
  30.      * @ORM\Column(name="sort_no", type="smallint", options={"unsigned":true})
  31.      */
  32.     protected $sort_no;
  33.     /**
  34.      * @ORM\Column(name="create_date", type="datetimetz")
  35.      */
  36.     private $create_date;
  37.     /**
  38.      * @ORM\Column(name="update_date", type="datetimetz")
  39.      */
  40.     private $update_date;
  41.     public function __construct()
  42.     {
  43.         $this->gmoEpsilonConfigs = new ArrayCollection();
  44.     }
  45.     public function getId()
  46.     {
  47.         return $this->id;
  48.     }
  49.     public function addGmoEpsilonConfig(Config $Config)
  50.     {
  51.         $this->gmoEpsilonConfigs[] = $Config;
  52.         return $this;
  53.     }
  54.     public function getIpAddress()
  55.     {
  56.         return $this->ip_address;
  57.     }
  58.     public function setIpAddress(string $ip_address)
  59.     {
  60.         $this->ip_address $ip_address;
  61.         return $this;
  62.     }
  63.     public function setSortNo($sort_no)
  64.     {
  65.         $this->sort_no $sort_no;
  66.         return $this;
  67.     }
  68.     public function getSortNo()
  69.     {
  70.         return $this->sort_no;
  71.     }
  72.     public function setCreateDate($createDate)
  73.     {
  74.         $this->create_date $createDate;
  75.         return $this;
  76.     }
  77.     public function getCreateDate()
  78.     {
  79.         return $this->create_date;
  80.     }
  81.     public function setUpdateDate($updateDate)
  82.     {
  83.         $this->update_date $updateDate;
  84.         return $this;
  85.     }
  86.     public function getUpdateDate()
  87.     {
  88.         return $this->update_date;
  89.     }
  90.     public function __toString()
  91.     {
  92.         return (string) $this->ip_address;
  93.     }
  94. }