src/Entity/SupplierIdServices.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Symfony\Component\Serializer\Annotation\Groups;
  5. /**
  6.  * SupplierIdServices
  7.  *
  8.  * @ORM\Table(name="suppliers_id_services")
  9.  * @ORM\Entity(repositoryClass="App\Repository\SupplierIdServicesRepository")
  10.  */
  11. class SupplierIdServices
  12. {
  13.     /**
  14.      * @var int
  15.      *
  16.      * @ORM\Column(name="id", type="integer")
  17.      * @ORM\Id
  18.      * @ORM\GeneratedValue(strategy="AUTO")
  19.      * 
  20.      * @Groups({"supplieridservices:read"})
  21.      */
  22.     private $id;
  23.     /**
  24.      * @var string
  25.      *
  26.      * @ORM\Column(name="name", type="string", length=255)
  27.      * 
  28.      * @Groups({"supplieridservices:read"})
  29.      */
  30.     private $name;
  31.     /**
  32.      * @var string|null
  33.      *
  34.      * @ORM\Column(name="color", type="string", length=20, nullable=true)
  35.      * 
  36.      * @Groups({"supplieridservices:read"})
  37.      */
  38.     private $color;
  39.     /**
  40.      * Get id
  41.      *
  42.      * @return int
  43.      */
  44.     public function getId()
  45.     {
  46.         return $this->id;
  47.     }
  48.     /**
  49.      * Set name
  50.      *
  51.      * @param string $name
  52.      *
  53.      * @return SupplierIdServices
  54.      */
  55.     public function setName($name)
  56.     {
  57.         $this->name $name;
  58.         return $this;
  59.     }
  60.     /**
  61.      * Get name
  62.      *
  63.      * @return string
  64.      */
  65.     public function getName()
  66.     {
  67.         return $this->name;
  68.     }
  69.     /**
  70.      * Set color
  71.      *
  72.      * @param string $color
  73.      *
  74.      * @return SupplierIdServices
  75.      */
  76.     public function setColor($color)
  77.     {
  78.         $this->color $color;
  79.         return $this;
  80.     }
  81.     /**
  82.      * Get color
  83.      *
  84.      * @return string
  85.      */
  86.     public function getColor()
  87.     {
  88.         return $this->color;
  89.     }
  90. }