src/Entity/TagOrg.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\TagOrgRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Serializer\Annotation\Groups;
  6. #[ORM\Entity(repositoryClassTagOrgRepository::class)]
  7. class TagOrg
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     #[Groups(["getTimes""getProject"])]
  13.     private ?int $id null;
  14.     #[ORM\Column(length45)]
  15.     #[Groups(["getTimes""getProject"])]
  16.     private ?string $name null;
  17.     #[ORM\Column]
  18.     #[Groups(["getTimes"])]
  19.     private ?bool $active null;
  20.     #[ORM\Column(length255)]
  21.     private ?string $color null;
  22.     public function __toString(): string
  23.     {
  24.         return $this->name;
  25.     }
  26.     public function getId(): ?int
  27.     {
  28.         return $this->id;
  29.     }
  30.     public function getName(): ?string
  31.     {
  32.         return $this->name;
  33.     }
  34.     public function setName(string $name): self
  35.     {
  36.         $this->name $name;
  37.         return $this;
  38.     }
  39.     public function isActive(): ?bool
  40.     {
  41.         return $this->active;
  42.     }
  43.     public function setActive(bool $active): self
  44.     {
  45.         $this->active $active;
  46.         return $this;
  47.     }
  48.     public function getColor(): ?string
  49.     {
  50.         return $this->color;
  51.     }
  52.     public function setColor(string $color): static
  53.     {
  54.         $this->color $color;
  55.         return $this;
  56.     }
  57. }