vendor/uvdesk/core-framework/Entity/SupportLabel.php line 13

Open in your IDE?
  1. <?php
  2. namespace Webkul\UVDesk\CoreFrameworkBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * SupportLabel
  6.  * @ORM\Entity(repositoryClass=null)
  7.  * @ORM\HasLifecycleCallbacks()
  8.  * @ORM\Table(name="uv_support_label")
  9.  */
  10. class SupportLabel
  11. {
  12.     /**
  13.      * @var integer
  14.      * @ORM\Id()
  15.      * @ORM\Column(type="integer")
  16.      * @ORM\GeneratedValue(strategy="AUTO")
  17.      */
  18.     private $id;
  19.     /**
  20.      * @var string
  21.      * @ORM\Column(name="name", length=191, type="string")
  22.      */
  23.     private $name;
  24.     /**
  25.      * @var string
  26.      * @ORM\Column(name="color_code", type="string", length=191, nullable=true)
  27.      */
  28.     private $colorCode;
  29.     /**
  30.      * @var \Webkul\UVDesk\CoreFrameworkBundle\Entity\User
  31.      * @ORM\ManyToOne(targetEntity="User")
  32.      * @ORM\JoinColumn(name="user_id", referencedColumnName="id", onDelete="CASCADE")
  33.      *      
  34.      */
  35.     private $user;
  36.     /**
  37.      * Get id
  38.      *
  39.      * @return integer
  40.      */
  41.     public function getId()
  42.     {
  43.         return $this->id;
  44.     }
  45.     /**
  46.      * Set name
  47.      *
  48.      * @param string $name
  49.      *
  50.      * @return SupportLabel
  51.      */
  52.     public function setName($name)
  53.     {
  54.         $this->name $name;
  55.         return $this;
  56.     }
  57.     /**
  58.      * Get name
  59.      *
  60.      * @return string
  61.      */
  62.     public function getName()
  63.     {
  64.         return $this->name;
  65.     }
  66.     /**
  67.      * Set colorCode
  68.      *
  69.      * @param string $colorCode
  70.      *
  71.      * @return SupportLabel
  72.      */
  73.     public function setColorCode($colorCode)
  74.     {
  75.         $this->colorCode $colorCode;
  76.         return $this;
  77.     }
  78.     /**
  79.      * Get colorCode
  80.      *
  81.      * @return string
  82.      */
  83.     public function getColorCode()
  84.     {
  85.         return $this->colorCode;
  86.     }
  87.     /**
  88.      * Set user
  89.      *
  90.      * @param \Webkul\UVDesk\CoreFrameworkBundle\Entity\User $user
  91.      *
  92.      * @return SupportLabel
  93.      */
  94.     public function setUser(\Webkul\UVDesk\CoreFrameworkBundle\Entity\User $user null)
  95.     {
  96.         $this->user $user;
  97.         return $this;
  98.     }
  99.     /**
  100.      * Get user
  101.      *
  102.      * @return \Webkul\UVDesk\CoreFrameworkBundle\Entity\User
  103.      */
  104.     public function getUser()
  105.     {
  106.         return $this->user;
  107.     }
  108. }