src/Entity/BusinessCategoryGroup.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\BusinessCategoryGroupRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassBusinessCategoryGroupRepository::class)]
  6. class BusinessCategoryGroup
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\Column(length255)]
  13.     private ?string $name null;
  14.     public function getId(): ?int
  15.     {
  16.         return $this->id;
  17.     }
  18.     public function getName(): ?string
  19.     {
  20.         return $this->name;
  21.     }
  22.     public function setName(string $name): static
  23.     {
  24.         $this->name $name;
  25.         return $this;
  26.     }
  27. }