app/Plugin/SheebDlc4/Entity/DownloadContent.php line 24

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of Customize of EC-CUBE by Kenji Nakanishi
  4.  *
  5.  * Copyright(c) 2021 Kenji Nakanishi. All Rights Reserved.
  6.  *
  7.  * https://www.facebook.com/web.kenji.nakanishi
  8.  *
  9.  * For the full copyright and license information, please view the LICENSE
  10.  * file that was distributed with this source code.
  11.  */
  12. namespace Plugin\SheebDlc4\Entity;
  13. use Doctrine\ORM\Mapping as ORM;
  14. use Eccube\Annotation as Eccube;
  15. use Eccube\Entity\AbstractEntity;
  16. /**
  17.  * @ORM\Table(name="plg_sheeb_dlc4_content")
  18.  * @ORM\Entity(repositoryClass="Plugin\SheebDlc4\Repository\DownloadContentRepository")
  19.  */
  20. class DownloadContent extends AbstractEntity
  21. {
  22.     const MODE_LOCAL 1;
  23.     const MODE_GOOGLE_DRIVE 2;
  24.     /**
  25.      * @var int
  26.      *
  27.      * @ORM\Id
  28.      * @ORM\Column(name="id", type="integer", options={"unsigned":true})
  29.      * @ORM\GeneratedValue(strategy="IDENTITY")
  30.      */
  31.     private $id;
  32.     /**
  33.      * @var \Doctrine\Common\Collections\Collection
  34.      *
  35.      * @ORM\OneToMany(targetEntity="Plugin\SheebDlc4\Entity\ProductClassContent", mappedBy="Content", cascade={"persist","remove"})
  36.      * @ORM\OrderBy({
  37.      *     "sheeb_dlc4_sort_number"="ASC"
  38.      * })
  39.      */
  40.     private $ProductClassContent;
  41.     /**
  42.      * @ORM\Column(name="sheeb_download_content", type="text", nullable=true)
  43.      * @Eccube\FormAppend(
  44.      *  auto_render=false,
  45.      *  type="\Symfony\Component\Form\Extension\Core\Type\TextType",
  46.      *  options={
  47.      *    "required": false,
  48.      *    "label": "sheeb.dlc.admin.product.detail.sheeb_download_content",
  49.      *  }
  50.      * )
  51.      */
  52.     private $sheeb_download_content;
  53.     /**
  54.      * @ORM\Column(name="sheeb_dlc4_subcontent", type="text", nullable=true)
  55.      * @Eccube\FormAppend(
  56.      *  auto_render=false,
  57.      *  type="\Symfony\Component\Form\Extension\Core\Type\TextType",
  58.      *  options={
  59.      *    "required": false
  60.      *  }
  61.      * )
  62.      */
  63.     private $sheeb_dlc4_subcontent;
  64.     /**
  65.      * @ORM\Column(name="sheeb_dlc4_mime", type="string", nullable=true)
  66.      * @Eccube\FormAppend(
  67.      *  auto_render=false,
  68.      *  type="\Symfony\Component\Form\Extension\Core\Type\HiddenType",
  69.      *  options={
  70.      *    "required": false
  71.      *  }
  72.      * )
  73.      */
  74.     private $sheeb_dlc4_mime;
  75.     /**
  76.      * @ORM\Column(name="sheeb_dlc4_content_type", type="string", nullable=true)
  77.      * @Eccube\FormAppend(
  78.      *  auto_render=false,
  79.      *  type="\Symfony\Component\Form\Extension\Core\Type\HiddenType",
  80.      *  options={
  81.      *    "required": false
  82.      *  }
  83.      * )
  84.      */
  85.     private $sheeb_dlc4_content_type;
  86.     /**
  87.      * @ORM\Column(name="sheeb_dlc4_save_url", type="string", nullable=true)
  88.      * @Eccube\FormAppend(
  89.      *  auto_render=false,
  90.      *  type="\Symfony\Component\Form\Extension\Core\Type\HiddenType",
  91.      *  options={
  92.      *    "required": false
  93.      *  }
  94.      * )
  95.      */
  96.     private $sheeb_dlc4_save_url;
  97.     /**
  98.      * @ORM\Column(name="sheeb_dlc4_origin_file_name", type="string", nullable=true)
  99.      * @Eccube\FormAppend(
  100.      *  auto_render=false,
  101.      *  type="\Symfony\Component\Form\Extension\Core\Type\HiddenType",
  102.      *  options={
  103.      *    "required": false
  104.      *  }
  105.      * )
  106.      */
  107.     private $sheeb_dlc4_origin_file_name;
  108.     /**
  109.      * @ORM\Column(name="sheeb_dlc4_display_name", type="string", nullable=true)
  110.      * @Eccube\FormAppend(
  111.      *  auto_render=false,
  112.      *  type="\Symfony\Component\Form\Extension\Core\Type\HiddenType",
  113.      *  options={
  114.      *    "required": false
  115.      *  }
  116.      * )
  117.      */
  118.     private $sheeb_dlc4_display_name;
  119.     /**
  120.      * @ORM\Column(name="sheeb_dlc4_sort_number", type="integer", nullable=true)
  121.      * @Eccube\FormAppend(
  122.      *  auto_render=false,
  123.      *  type="\Symfony\Component\Form\Extension\Core\Type\HiddenType",
  124.      *  options={
  125.      *    "required": false
  126.      *  }
  127.      * )
  128.      */
  129.     private $sheeb_dlc4_sort_number;
  130.     /**
  131.      * @return int
  132.      */
  133.     public function getId()
  134.     {
  135.         return $this->id;
  136.     }
  137.     /**
  138.      * @return $this
  139.      */
  140.     public function setId(int $id)
  141.     {
  142.         $this->id $id;
  143.         return $this;
  144.     }
  145.     /**
  146.      * Set product.
  147.      *
  148.      * @param \Doctrine\Common\Collections\Collection $entity
  149.      *
  150.      * @return $this
  151.      */
  152.     public function setProductClassContent($entity)
  153.     {
  154.         $this->ProductClassContent $entity;
  155.         return $this;
  156.     }
  157.     /**
  158.      * Get product.
  159.      *
  160.      * @return \Doctrine\Common\Collections\Collection
  161.      */
  162.     public function getProductClassContent()
  163.     {
  164.         return $this->ProductClassContent;
  165.     }
  166.     /**
  167.      * @return mixed
  168.      */
  169.     public function getSheebDownloadContent()
  170.     {
  171.         return $this->sheeb_download_content;
  172.     }
  173.     /**
  174.      * @param $sheeb_download_content
  175.      */
  176.     public function setSheebDownloadContent($sheeb_download_content): self
  177.     {
  178.         $this->sheeb_download_content $sheeb_download_content;
  179.         return $this;
  180.     }
  181.     /**
  182.      * @return mixed
  183.      */
  184.     public function getSheebDlc4Subcontent()
  185.     {
  186.         return $this->sheeb_dlc4_subcontent;
  187.     }
  188.     /**
  189.      * @param $sheeb_dlc4_subcontent
  190.      */
  191.     public function setSheebDlc4Subcontent($sheeb_dlc4_subcontent): self
  192.     {
  193.         $this->sheeb_dlc4_subcontent $sheeb_dlc4_subcontent;
  194.         return $this;
  195.     }
  196.     /**
  197.      * @return mixed
  198.      */
  199.     public function getSheebDlc4Mime()
  200.     {
  201.         return $this->sheeb_dlc4_mime;
  202.     }
  203.     /**
  204.      * @param $sheeb_dlc4_mime
  205.      */
  206.     public function setSheebDlc4Mime($sheeb_dlc4_mime): self
  207.     {
  208.         $this->sheeb_dlc4_mime $sheeb_dlc4_mime;
  209.         return $this;
  210.     }
  211.     /**
  212.      * @return mixed
  213.      */
  214.     public function getSheebDlc4ContentType()
  215.     {
  216.         return $this->sheeb_dlc4_content_type;
  217.     }
  218.     /**
  219.      * @param $sheeb_dlc4_content_type
  220.      */
  221.     public function setSheebDlc4ContentType($sheeb_dlc4_content_type): self
  222.     {
  223.         $this->sheeb_dlc4_content_type $sheeb_dlc4_content_type;
  224.         return $this;
  225.     }
  226.     /**
  227.      * @return mixed
  228.      */
  229.     public function getSheebDlc4SaveUrl()
  230.     {
  231.         return $this->sheeb_dlc4_save_url;
  232.     }
  233.     /**
  234.      * @param $sheeb_dlc4_save_url
  235.      */
  236.     public function setSheebDlc4SaveUrl($sheeb_dlc4_save_url): self
  237.     {
  238.         $this->sheeb_dlc4_save_url $sheeb_dlc4_save_url;
  239.         return $this;
  240.     }
  241.     /**
  242.      * @return mixed
  243.      */
  244.     public function getSheebDlc4OriginFileName()
  245.     {
  246.         return $this->sheeb_dlc4_origin_file_name;
  247.     }
  248.     /**
  249.      * @param $sheeb_dlc4_origin_file_name
  250.      *
  251.      * @return $this
  252.      */
  253.     public function setSheebDlc4OriginFileName($sheeb_dlc4_origin_file_name)
  254.     {
  255.         $this->sheeb_dlc4_origin_file_name $sheeb_dlc4_origin_file_name;
  256.         return $this;
  257.     }
  258.     /**
  259.      * @return mixed
  260.      */
  261.     public function getSheebDlc4DisplayName()
  262.     {
  263.         return $this->sheeb_dlc4_display_name;
  264.     }
  265.     /**
  266.      * @param $sheeb_dlc4_display_name
  267.      *
  268.      * @return $this
  269.      */
  270.     public function setSheebDlc4DisplayName($sheeb_dlc4_display_name)
  271.     {
  272.         $this->sheeb_dlc4_display_name $sheeb_dlc4_display_name;
  273.         return $this;
  274.     }
  275.     /**
  276.      * @return int
  277.      */
  278.     public function getSheebDlc4SortNumber()
  279.     {
  280.         return $this->sheeb_dlc4_sort_number;
  281.     }
  282.     /**
  283.      * @return $this
  284.      */
  285.     public function setSheebDlc4SortNumber(int $sortNumber)
  286.     {
  287.         $this->sheeb_dlc4_sort_number $sortNumber;
  288.         return $this;
  289.     }
  290. }