<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use App\Repository\StatusRepository;
use Symfony\Component\Serializer\Annotation\Groups;
#[ORM\Entity(repositoryClass: StatusRepository::class)]
class Status
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255)]
#[Groups('projects:admin-get-all')]
private ?string $name = null;
#[ORM\Column(length: 255)]
#[Groups('projects:admin-get-all')]
private ?string $color = null;
#[ORM\Column(length: 255)]
#[Groups('projects:admin-get-all')]
private ?string $type = null;
public function getId(): ?int
{
return $this->id;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(string $name): self
{
$this->name = $name;
return $this;
}
public function getColor(): ?string
{
return $this->color;
}
public function setColor(string $color): self
{
$this->color = $color;
return $this;
}
public function __toString()
{
return $this->name;
}
public function getType(): ?string
{
return $this->type;
}
public function setType(string $type): self
{
$this->type = $type;
return $this;
}
}