src/Entity/Status.php line 10

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