src/OfficeBrain/Bundle/SubShopBundle/Entity/SubShopTheme.php line 16

Open in your IDE?
  1. <?php
  2. namespace App\OfficeBrain\Bundle\SubShopBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Symfony\Component\Validator\Constraints as Assert;
  5. use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
  6. /**
  7.  * SubShopTheme.
  8.  *
  9.  * @ORM\Table("tbl_sub_shop_theme")
  10.  * @ORM\Entity(repositoryClass="App\OfficeBrain\Bundle\SubShopBundle\Entity\SubShopThemeRepository")
  11.  * @UniqueEntity(fields={"folderName"}, message="subshop_theme.form.unique_folder")
  12.  */
  13. class SubShopTheme
  14. {
  15.     /**
  16.      * @var int
  17.      *
  18.      * @ORM\Column(name="id", type="integer")
  19.      * @ORM\Id
  20.      * @ORM\GeneratedValue(strategy="AUTO")
  21.      */
  22.     private $id;
  23.     /**
  24.      * @var string
  25.      *
  26.      * @ORM\Column(name="name", type="string", length=255)
  27.      * @Assert\NotBlank(message="subshop_inquiry.form.not_blank")
  28.      */
  29.     private $name;
  30.     /**
  31.      * @var string
  32.      *
  33.      * @ORM\Column(name="folder_name", type="string", length=255)
  34.      * @Assert\NotBlank(message="subshop_inquiry.form.not_blank")
  35.      */
  36.     private $folderName;
  37.     /**
  38.      * @var int
  39.      *
  40.      * @ORM\Column(name="instance_id", type="integer")
  41.      */
  42.     private $instanceId;
  43.     /**
  44.      * @var string
  45.      *
  46.      * @ORM\Column(name="instance_type", type="string", length=255)
  47.      */
  48.     private $instanceType;
  49.     /**
  50.      * @var string
  51.      *
  52.      * @ORM\Column(name="theme_type", type="string", length=255)
  53.      */
  54.     private $themeType;
  55.     /**
  56.      * @var string
  57.      *
  58.      * @ORM\Column(name="theme_color", type="text", nullable=true)
  59.      */
  60.     private $themeColor;
  61.     /**
  62.      * @var string
  63.      *
  64.      * @ORM\Column(name="theme_data", type="text", nullable=true)
  65.      */
  66.     private $themeData;
  67.     /**
  68.      * @var string
  69.      *
  70.      * @ORM\Column(name="theme_image_name", type="string", length=255, nullable=true)
  71.      * @Assert\File( maxSize = "3000k", mimeTypesMessage = "subshop_theme.form.upload_mandatory")
  72.      */
  73.     private $themeImageName;
  74.     /**
  75.      * @var string
  76.      *
  77.      * @ORM\Column(name="parent_id", type="integer", nullable=true)
  78.      */
  79.     private $parentId;
  80.     /**
  81.      * @var int
  82.      *
  83.      * @ORM\Column(name="status", type="integer")
  84.      */
  85.     private $status;
  86.     /**
  87.      * @var int
  88.      *
  89.      * @ORM\Column(name="created_uid", type="integer")
  90.      */
  91.     private $createdUid;
  92.     /**
  93.      * @var int
  94.      *
  95.      * @ORM\Column(name="updated_uid", type="integer", nullable=true)
  96.      */
  97.     private $updatedUid;
  98.     /**
  99.      * @var int
  100.      *
  101.      * @ORM\Column(name="deleted_uid", type="integer", nullable=true)
  102.      */
  103.     private $deletedUid;
  104.     /**
  105.      * @var \DateTime
  106.      *
  107.      * @ORM\Column(name="created_at", type="datetime")
  108.      */
  109.     private $createdAt;
  110.     /**
  111.      * @var \DateTime
  112.      *
  113.      * @ORM\Column(name="updated_at", type="datetime", nullable=true)
  114.      */
  115.     private $updatedAt;
  116.     /**
  117.      * @var \DateTime
  118.      *
  119.      * @ORM\Column(name="deleted_at", type="datetime", nullable=true)
  120.      */
  121.     private $deletedAt;
  122.     public function __construct()
  123.     {
  124.         $this->createdAt = new \DateTime();
  125.     }
  126.     /**
  127.      * Get id.
  128.      *
  129.      * @return int
  130.      */
  131.     public function getId()
  132.     {
  133.         return $this->id;
  134.     }
  135.     /**
  136.      * Set name.
  137.      *
  138.      * @param string $name
  139.      *
  140.      * @return SubShopTheme
  141.      */
  142.     public function setName($name)
  143.     {
  144.         $this->name $name;
  145.         return $this;
  146.     }
  147.     /**
  148.      * Get name.
  149.      *
  150.      * @return string
  151.      */
  152.     public function getName()
  153.     {
  154.         return $this->name;
  155.     }
  156.     /**
  157.      * Set folderName.
  158.      *
  159.      * @param string $folderName
  160.      *
  161.      * @return SubShopTheme
  162.      */
  163.     public function setFolderName($folderName)
  164.     {
  165.         $this->folderName $folderName;
  166.         return $this;
  167.     }
  168.     /**
  169.      * Get folderName.
  170.      *
  171.      * @return string
  172.      */
  173.     public function getFolderName()
  174.     {
  175.         return $this->folderName;
  176.     }
  177.     /**
  178.      * Set instanceId.
  179.      *
  180.      * @param int $instanceId
  181.      *
  182.      * @return SubShopTheme
  183.      */
  184.     public function setInstanceId($instanceId)
  185.     {
  186.         $this->instanceId $instanceId;
  187.         return $this;
  188.     }
  189.     /**
  190.      * Get instanceId.
  191.      *
  192.      * @return int
  193.      */
  194.     public function getInstanceId()
  195.     {
  196.         return $this->instanceId;
  197.     }
  198.     /**
  199.      * Set instanceType.
  200.      *
  201.      * @param string $instanceType
  202.      *
  203.      * @return SubShopTheme
  204.      */
  205.     public function setInstanceType($instanceType)
  206.     {
  207.         $this->instanceType $instanceType;
  208.         return $this;
  209.     }
  210.     /**
  211.      * Get instanceType.
  212.      *
  213.      * @return string
  214.      */
  215.     public function getInstanceType()
  216.     {
  217.         return $this->instanceType;
  218.     }
  219.     /**
  220.      * Set themeType.
  221.      *
  222.      * @param int $themeType
  223.      *
  224.      * @return ThemeType
  225.      */
  226.     public function setThemeType($themeType)
  227.     {
  228.         $this->themeType $themeType;
  229.         return $this;
  230.     }
  231.     /**
  232.      * Get themeType.
  233.      *
  234.      * @return int
  235.      */
  236.     public function getThemeType()
  237.     {
  238.         return $this->themeType;
  239.     }
  240.     /**
  241.      * Set status.
  242.      *
  243.      * @param int $status
  244.      *
  245.      * @return SubShopTheme
  246.      */
  247.     public function setStatus($status)
  248.     {
  249.         $this->status $status;
  250.         return $this;
  251.     }
  252.     /**
  253.      * Get status.
  254.      *
  255.      * @return int
  256.      */
  257.     public function getStatus()
  258.     {
  259.         return $this->status;
  260.     }
  261.     /**
  262.      * Set createdUid.
  263.      *
  264.      * @param int $createdUid
  265.      *
  266.      * @return SubShopTheme
  267.      */
  268.     public function setCreatedUid($createdUid)
  269.     {
  270.         $this->createdUid $createdUid;
  271.         return $this;
  272.     }
  273.     /**
  274.      * Get createdUid.
  275.      *
  276.      * @return int
  277.      */
  278.     public function getCreatedUid()
  279.     {
  280.         return $this->createdUid;
  281.     }
  282.     /**
  283.      * Set updatedUid.
  284.      *
  285.      * @param int $updatedUid
  286.      *
  287.      * @return SubShopTheme
  288.      */
  289.     public function setUpdatedUid($updatedUid)
  290.     {
  291.         $this->updatedUid $updatedUid;
  292.         return $this;
  293.     }
  294.     /**
  295.      * Get updatedUid.
  296.      *
  297.      * @return int
  298.      */
  299.     public function getUpdatedUid()
  300.     {
  301.         return $this->updatedUid;
  302.     }
  303.     /**
  304.      * Set deletedUid.
  305.      *
  306.      * @param int $deletedUid
  307.      *
  308.      * @return SubShopTheme
  309.      */
  310.     public function setDeletedUid($deletedUid)
  311.     {
  312.         $this->deletedUid $deletedUid;
  313.         return $this;
  314.     }
  315.     /**
  316.      * Get deletedUid.
  317.      *
  318.      * @return int
  319.      */
  320.     public function getDeletedUid()
  321.     {
  322.         return $this->deletedUid;
  323.     }
  324.     /**
  325.      * Set createdAt.
  326.      *
  327.      * @param \DateTime $createdAt
  328.      *
  329.      * @return SubShopTheme
  330.      */
  331.     public function setCreatedAt($createdAt)
  332.     {
  333.         $this->createdAt $createdAt;
  334.         return $this;
  335.     }
  336.     /**
  337.      * Get createdAt.
  338.      *
  339.      * @return \DateTime
  340.      */
  341.     public function getCreatedAt()
  342.     {
  343.         return $this->createdAt;
  344.     }
  345.     /**
  346.      * Set updatedAt.
  347.      *
  348.      * @param \DateTime $updatedAt
  349.      *
  350.      * @return SubShopTheme
  351.      */
  352.     public function setUpdatedAt($updatedAt)
  353.     {
  354.         $this->updatedAt $updatedAt;
  355.         return $this;
  356.     }
  357.     /**
  358.      * Get updatedAt.
  359.      *
  360.      * @return \DateTime
  361.      */
  362.     public function getUpdatedAt()
  363.     {
  364.         return $this->updatedAt;
  365.     }
  366.     /**
  367.      * Set deletedAt.
  368.      *
  369.      * @param \DateTime $deletedAt
  370.      *
  371.      * @return SubShopTheme
  372.      */
  373.     public function setDeletedAt($deletedAt)
  374.     {
  375.         $this->deletedAt $deletedAt;
  376.         return $this;
  377.     }
  378.     /**
  379.      * Get deletedAt.
  380.      *
  381.      * @return \DateTime
  382.      */
  383.     public function getDeletedAt()
  384.     {
  385.         return $this->deletedAt;
  386.     }
  387.     /**
  388.      * Set themeColor.
  389.      *
  390.      * @param string $themeColor
  391.      *
  392.      * @return SubShopTheme
  393.      */
  394.     public function setThemeColor($themeColor)
  395.     {
  396.         $this->themeColor $themeColor;
  397.         return $this;
  398.     }
  399.     /**
  400.      * Get themeColor.
  401.      *
  402.      * @return string
  403.      */
  404.     public function getThemeColor()
  405.     {
  406.         return $this->themeColor;
  407.     }
  408.     /**
  409.      * Set parentId.
  410.      *
  411.      * @param int $parentId
  412.      *
  413.      * @return SubShopTheme
  414.      */
  415.     public function setParentId($parentId)
  416.     {
  417.         $this->parentId $parentId;
  418.         return $this;
  419.     }
  420.     /**
  421.      * Get parentId.
  422.      *
  423.      * @return int
  424.      */
  425.     public function getParentId()
  426.     {
  427.         return $this->parentId;
  428.     }
  429.     /**
  430.      * Set themeImageName.
  431.      *
  432.      * @param string $themeImageName
  433.      *
  434.      * @return SubShopTheme
  435.      */
  436.     public function setThemeImageName($themeImageName)
  437.     {
  438.         $this->themeImageName $themeImageName;
  439.         return $this;
  440.     }
  441.     /**
  442.      * Get themeImageName.
  443.      *
  444.      * @return string
  445.      */
  446.     public function getThemeImageName()
  447.     {
  448.         return $this->themeImageName;
  449.     }
  450.     /**
  451.      * Set themeData.
  452.      *
  453.      * @param string $themeData
  454.      *
  455.      * @return SubShopTheme
  456.      */
  457.     public function setThemeData($themeData)
  458.     {
  459.         $this->themeData $themeData;
  460.         return $this;
  461.     }
  462.     /**
  463.      * Get themeData.
  464.      *
  465.      * @return string
  466.      */
  467.     public function getThemeData()
  468.     {
  469.         return $this->themeData;
  470.     }
  471. }