src/Entity/SupplierGallery.php line 16

Open in your IDE?
  1. <?php
  2. namespace App\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.  * SupplierGallery
  8.  *
  9.  * @ORM\Table(name="suppliers_gallery")
  10.  * @ORM\Entity(repositoryClass="App\Repository\SupplierGalleryRepository")
  11.  * @ORM\HasLifecycleCallbacks()
  12.  */
  13. class SupplierGallery
  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 int
  25.      *
  26.      * @ORM\Column(name="control_id", type="integer", nullable=true)
  27.      */
  28.     private $controlId;
  29.     /**
  30.      * @var int
  31.      *
  32.      * @ORM\Column(name="supplier_id", type="integer")
  33.      */
  34.     private $supplierId;
  35.     /**
  36.      * @var int
  37.      *
  38.      * @ORM\Column(name="services_cat_id", type="integer", nullable=true)
  39.      */
  40.     private $servicesCatId;
  41.     /**
  42.      * @var string
  43.      *
  44.      * @ORM\Column(name="services_category", type="string", length=255, nullable=true)
  45.      */
  46.     private $servicesCategory;
  47.     /**
  48.      * @var int
  49.      *
  50.      * @ORM\Column(name="services_id", type="integer", nullable=true)
  51.      */
  52.     private $servicesId;
  53.     /**
  54.      * @var string
  55.      *
  56.      * @ORM\Column(name="image_large", type="string", length=255)
  57.      * @Assert\NotBlank()
  58.      */
  59.     private $imageLarge;
  60.     /**
  61.      * @var string
  62.      *
  63.      * @ORM\Column(name="image_medium", type="string", length=255)
  64.      */
  65.     private $imageMedium;
  66.     /**
  67.      * @var string
  68.      *
  69.      * @ORM\Column(name="image_small", type="string", length=255)
  70.      */
  71.     private $imageSmall;
  72.     /**
  73.      * @var string
  74.      *
  75.      * @ORM\Column(name="rank", type="string", length=255, nullable=true)
  76.      */
  77.     private $rank;
  78.     /**
  79.      * @var int
  80.      *
  81.      * @ORM\Column(name="created_id", type="integer")
  82.      */
  83.     private $createdId;
  84.     /**
  85.      * @var \DateTime
  86.      *
  87.      * @ORM\Column(name="created_at", type="datetime")
  88.      */
  89.     private $createdAt;
  90.     /**
  91.      * @var int
  92.      *
  93.      * @ORM\Column(name="updated_id", type="integer")
  94.      */
  95.     private $updatedId;
  96.     /**
  97.      * @var \DateTime
  98.      *
  99.      * @ORM\Column(name="updated_at", type="datetime")
  100.      */
  101.     private $updatedAt;
  102.     /**
  103.      * Get id
  104.      *
  105.      * @return int
  106.      */
  107.     public function getId()
  108.     {
  109.         return $this->id;
  110.     }
  111.     /**
  112.      * Set imageLarge
  113.      *
  114.      * @param string $imageLarge
  115.      *
  116.      * @return SupplierGallery
  117.      */
  118.     public function setImageLarge($imageLarge)
  119.     {
  120.         $this->imageLarge $imageLarge;
  121.         return $this;
  122.     }
  123.     /**
  124.      * Get imageLarge
  125.      *
  126.      * @return string
  127.      */
  128.     public function getImageLarge()
  129.     {
  130.         return $this->imageLarge;
  131.     }
  132.     /**
  133.      * Set imageMedium
  134.      *
  135.      * @param string $imageMedium
  136.      *
  137.      * @return SupplierGallery
  138.      */
  139.     public function setImageMedium($imageMedium)
  140.     {
  141.         $this->imageMedium $imageMedium;
  142.         return $this;
  143.     }
  144.     /**
  145.      * Get imageMedium
  146.      *
  147.      * @return string
  148.      */
  149.     public function getImageMedium()
  150.     {
  151.         return $this->imageMedium;
  152.     }
  153.     /**
  154.      * Set imageSmall
  155.      *
  156.      * @param string $imageSmall
  157.      *
  158.      * @return SupplierGallery
  159.      */
  160.     public function setImageSmall($imageSmall)
  161.     {
  162.         $this->imageSmall $imageSmall;
  163.         return $this;
  164.     }
  165.     /**
  166.      * Get imageSmall
  167.      *
  168.      * @return string
  169.      */
  170.     public function getImageSmall()
  171.     {
  172.         return $this->imageSmall;
  173.     }
  174.     /**
  175.      * Set createdId
  176.      *
  177.      * @param integer $createdId
  178.      *
  179.      * @return SupplierGallery
  180.      */
  181.     public function setCreatedId($createdId)
  182.     {
  183.         $this->createdId $createdId;
  184.         return $this;
  185.     }
  186.     /**
  187.      * Get createdId
  188.      *
  189.      * @return integer
  190.      */
  191.     public function getCreatedId()
  192.     {
  193.         return $this->createdId;
  194.     }
  195.     /**
  196.      * Set createdAt
  197.      *
  198.      * @param \DateTime $createdAt
  199.      *
  200.      * @return SupplierGallery
  201.      */
  202.     public function setCreatedAt(\Datetime $createdAt)
  203.     {
  204.         $this->createdAt $createdAt;
  205.         return $this;
  206.     }
  207.     /**
  208.      * Get createdAt
  209.      *
  210.      * @return \DateTime
  211.      */
  212.     public function getCreatedAt()
  213.     {
  214.         return $this->createdAt;
  215.     }
  216.     /**
  217.      * Set updatedId
  218.      *
  219.      * @param integer $updatedId
  220.      *
  221.      * @return SupplierGallery
  222.      */
  223.     public function setUpdatedId($updatedId)
  224.     {
  225.         $this->updatedId $updatedId;
  226.         return $this;
  227.     }
  228.     /**
  229.      * Get updatedId
  230.      *
  231.      * @return integer
  232.      */
  233.     public function getUpdatedId()
  234.     {
  235.         return $this->updatedId;
  236.     }
  237.     /**
  238.      * Set updatedAt
  239.      *
  240.      * @param \DateTime $updatedAt
  241.      *
  242.      * @return SupplierGallery
  243.      */
  244.     public function setUpdatedAt(\Datetime $updatedAt)
  245.     {
  246.         $this->updatedAt $updatedAt;
  247.         return $this;
  248.     }
  249.     /**
  250.      * Get updatedAt
  251.      *
  252.      * @return \DateTime
  253.      */
  254.     public function getUpdatedAt()
  255.     {
  256.         return $this->updatedAt;
  257.     }
  258.     /**
  259.      * @ORM\PrePersist
  260.      */
  261.     public function setCreatedAtValue()
  262.     {
  263.         $this->createdAt = new \Datetime();
  264.     }
  265.     /**
  266.      * @ORM\PrePersist
  267.      * @ORM\PreUpdate
  268.      */
  269.     public function setUpdatedAtValue()
  270.     {
  271.         $this->updatedAt = new \Datetime();
  272.     }
  273.     /**
  274.      * Set supplierId
  275.      *
  276.      * @param integer $supplierId
  277.      *
  278.      * @return SupplierGallery
  279.      */
  280.     public function setSupplierId($supplierId)
  281.     {
  282.         $this->supplierId $supplierId;
  283.         return $this;
  284.     }
  285.     /**
  286.      * Get supplierId
  287.      *
  288.      * @return integer
  289.      */
  290.     public function getSupplierId()
  291.     {
  292.         return $this->supplierId;
  293.     }
  294.     /**
  295.      * Set servicesCatId
  296.      *
  297.      * @param integer $servicesCatId
  298.      *
  299.      * @return SupplierGallery
  300.      */
  301.     public function setServicesCatId($servicesCatId)
  302.     {
  303.         $this->servicesCatId $servicesCatId;
  304.         return $this;
  305.     }
  306.     /**
  307.      * Get servicesCatId
  308.      *
  309.      * @return integer
  310.      */
  311.     public function getServicesCatId()
  312.     {
  313.         return $this->servicesCatId;
  314.     }
  315.     /**
  316.      * Set servicesCategory
  317.      *
  318.      * @param string $servicesCategory
  319.      *
  320.      * @return SupplierGallery
  321.      */
  322.     public function setServicesCategory($servicesCategory)
  323.     {
  324.         $this->servicesCategory $servicesCategory;
  325.         return $this;
  326.     }
  327.     /**
  328.      * Get servicesCategory
  329.      *
  330.      * @return string
  331.      */
  332.     public function getServicesCategory()
  333.     {
  334.         return $this->servicesCategory;
  335.     }
  336.     /**
  337.      * Set servicesId
  338.      *
  339.      * @param integer $servicesId
  340.      *
  341.      * @return SupplierGallery
  342.      */
  343.     public function setServicesId($servicesId)
  344.     {
  345.         $this->servicesId $servicesId;
  346.         return $this;
  347.     }
  348.     /**
  349.      * Get servicesId
  350.      *
  351.      * @return integer
  352.      */
  353.     public function getServicesId()
  354.     {
  355.         return $this->servicesId;
  356.     }
  357.     /**
  358.      * Set controlId
  359.      *
  360.      * @param integer $controlId
  361.      *
  362.      * @return SupplierGallery
  363.      */
  364.     public function setControlId($controlId)
  365.     {
  366.         $this->controlId $controlId;
  367.         return $this;
  368.     }
  369.     /**
  370.      * Get controlId
  371.      *
  372.      * @return integer
  373.      */
  374.     public function getControlId()
  375.     {
  376.         return $this->controlId;
  377.     }
  378.     /**
  379.      * Set rank
  380.      *
  381.      * @param string $rank
  382.      *
  383.      * @return SupplierGallery
  384.      */
  385.     public function setRank($rank)
  386.     {
  387.         $this->rank $rank;
  388.         return $this;
  389.     }
  390.     /**
  391.      * Get rank
  392.      *
  393.      * @return string
  394.      */
  395.     public function getRank()
  396.     {
  397.         return $this->rank;
  398.     }
  399. }