<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Serializer\Annotation\Groups;
/**
* SupplierIdServices
*
* @ORM\Table(name="suppliers_id_services")
* @ORM\Entity(repositoryClass="App\Repository\SupplierIdServicesRepository")
*/
class SupplierIdServices
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*
* @Groups({"supplieridservices:read"})
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="name", type="string", length=255)
*
* @Groups({"supplieridservices:read"})
*/
private $name;
/**
* @var string|null
*
* @ORM\Column(name="color", type="string", length=20, nullable=true)
*
* @Groups({"supplieridservices:read"})
*/
private $color;
/**
* Get id
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set name
*
* @param string $name
*
* @return SupplierIdServices
*/
public function setName($name)
{
$this->name = $name;
return $this;
}
/**
* Get name
*
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Set color
*
* @param string $color
*
* @return SupplierIdServices
*/
public function setColor($color)
{
$this->color = $color;
return $this;
}
/**
* Get color
*
* @return string
*/
public function getColor()
{
return $this->color;
}
}