src/Eccube/Entity/Plugin.php line 28

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of EC-CUBE
  4.  *
  5.  * Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  6.  *
  7.  * http://www.ec-cube.co.jp/
  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 Eccube\Entity;
  13. use Doctrine\ORM\Mapping as ORM;
  14. if (!class_exists('\Eccube\Entity\Plugin')) {
  15.     /**
  16.      * Plugin
  17.      *
  18.      * @ORM\Table(name="dtb_plugin")
  19.      * @ORM\InheritanceType("SINGLE_TABLE")
  20.      * @ORM\DiscriminatorColumn(name="discriminator_type", type="string", length=255)
  21.      * @ORM\HasLifecycleCallbacks()
  22.      * @ORM\Entity(repositoryClass="Eccube\Repository\PluginRepository")
  23.      */
  24.     class Plugin extends \Eccube\Entity\AbstractEntity
  25.     {
  26.         /**
  27.          * @var int
  28.          *
  29.          * @ORM\Column(name="id", type="integer", options={"unsigned":true})
  30.          * @ORM\Id
  31.          * @ORM\GeneratedValue(strategy="IDENTITY")
  32.          */
  33.         private $id;
  34.         /**
  35.          * @var string
  36.          *
  37.          * @ORM\Column(name="name", type="string", length=255)
  38.          */
  39.         private $name;
  40.         /**
  41.          * @var string
  42.          *
  43.          * @ORM\Column(name="code", type="string", length=255)
  44.          */
  45.         private $code;
  46.         /**
  47.          * @var boolean
  48.          *
  49.          * @ORM\Column(name="enabled", type="boolean", options={"default":false})
  50.          */
  51.         private $enabled false;
  52.         /**
  53.          * @var string
  54.          *
  55.          * @ORM\Column(name="version", type="string", length=255)
  56.          */
  57.         private $version;
  58.         /**
  59.          * @var string
  60.          *
  61.          * @ORM\Column(name="source", type="string", length=255)
  62.          */
  63.         private $source;
  64.         /**
  65.          * @var boolean
  66.          * @ORM\Column(name="initialized", type="boolean", options={"default":false})
  67.          */
  68.         private $initialized false;
  69.         /**
  70.          * @var \DateTime
  71.          *
  72.          * @ORM\Column(name="create_date", type="datetimetz")
  73.          */
  74.         private $create_date;
  75.         /**
  76.          * @var \DateTime
  77.          *
  78.          * @ORM\Column(name="update_date", type="datetimetz")
  79.          */
  80.         private $update_date;
  81.         /**
  82.          * Get id.
  83.          *
  84.          * @return int
  85.          */
  86.         public function getId()
  87.         {
  88.             return $this->id;
  89.         }
  90.         /**
  91.          * Set name.
  92.          *
  93.          * @param string $name
  94.          *
  95.          * @return Plugin
  96.          */
  97.         public function setName($name)
  98.         {
  99.             $this->name $name;
  100.             return $this;
  101.         }
  102.         /**
  103.          * Get name.
  104.          *
  105.          * @return string
  106.          */
  107.         public function getName()
  108.         {
  109.             return $this->name;
  110.         }
  111.         /**
  112.          * Set code.
  113.          *
  114.          * @param string $code
  115.          *
  116.          * @return Plugin
  117.          */
  118.         public function setCode($code)
  119.         {
  120.             $this->code $code;
  121.             return $this;
  122.         }
  123.         /**
  124.          * Get code.
  125.          *
  126.          * @return string
  127.          */
  128.         public function getCode()
  129.         {
  130.             return $this->code;
  131.         }
  132.         /**
  133.          * Set enabled.
  134.          *
  135.          * @param boolean $enabled
  136.          *
  137.          * @return Plugin
  138.          */
  139.         public function setEnabled($enabled)
  140.         {
  141.             $this->enabled $enabled;
  142.             return $this;
  143.         }
  144.         /**
  145.          * Get enabled.
  146.          *
  147.          * @return boolean
  148.          */
  149.         public function isEnabled()
  150.         {
  151.             return $this->enabled;
  152.         }
  153.         /**
  154.          * Set version.
  155.          *
  156.          * @param string $version
  157.          *
  158.          * @return Plugin
  159.          */
  160.         public function setVersion($version)
  161.         {
  162.             $this->version $version;
  163.             return $this;
  164.         }
  165.         /**
  166.          * Get version.
  167.          *
  168.          * @return string
  169.          */
  170.         public function getVersion()
  171.         {
  172.             return $this->version;
  173.         }
  174.         /**
  175.          * Set source.
  176.          *
  177.          * @param string $source
  178.          *
  179.          * @return Plugin
  180.          */
  181.         public function setSource($source)
  182.         {
  183.             $this->source $source;
  184.             return $this;
  185.         }
  186.         /**
  187.          * Get source.
  188.          *
  189.          * @return string
  190.          */
  191.         public function getSource()
  192.         {
  193.             return $this->source;
  194.         }
  195.         /**
  196.          * Get initialized.
  197.          *
  198.          * @return bool
  199.          */
  200.         public function isInitialized(): bool
  201.         {
  202.             return $this->initialized;
  203.         }
  204.         /**
  205.          * Set initialized.
  206.          *
  207.          * @param bool $initialized
  208.          *
  209.          * @return Plugin
  210.          */
  211.         public function setInitialized(bool $initialized)
  212.         {
  213.             $this->initialized $initialized;
  214.             return $this;
  215.         }
  216.         /**
  217.          * Set createDate.
  218.          *
  219.          * @param \DateTime $createDate
  220.          *
  221.          * @return Plugin
  222.          */
  223.         public function setCreateDate($createDate)
  224.         {
  225.             $this->create_date $createDate;
  226.             return $this;
  227.         }
  228.         /**
  229.          * Get createDate.
  230.          *
  231.          * @return \DateTime
  232.          */
  233.         public function getCreateDate()
  234.         {
  235.             return $this->create_date;
  236.         }
  237.         /**
  238.          * Set updateDate.
  239.          *
  240.          * @param \DateTime $updateDate
  241.          *
  242.          * @return Plugin
  243.          */
  244.         public function setUpdateDate($updateDate)
  245.         {
  246.             $this->update_date $updateDate;
  247.             return $this;
  248.         }
  249.         /**
  250.          * Get updateDate.
  251.          *
  252.          * @return \DateTime
  253.          */
  254.         public function getUpdateDate()
  255.         {
  256.             return $this->update_date;
  257.         }
  258.     }
  259. }