<?php
namespace App\Entity;
use App\Repository\TagOrgRepository;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Serializer\Annotation\Groups;
#[ORM\Entity(repositoryClass: TagOrgRepository::class)]
class TagOrg
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
#[Groups(["getTimes", "getProject"])]
private ?int $id = null;
#[ORM\Column(length: 45)]
#[Groups(["getTimes", "getProject"])]
private ?string $name = null;
#[ORM\Column]
#[Groups(["getTimes"])]
private ?bool $active = null;
#[ORM\Column(length: 255)]
private ?string $color = null;
public function __toString(): string
{
return $this->name;
}
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 isActive(): ?bool
{
return $this->active;
}
public function setActive(bool $active): self
{
$this->active = $active;
return $this;
}
public function getColor(): ?string
{
return $this->color;
}
public function setColor(string $color): static
{
$this->color = $color;
return $this;
}
}