src/Entity/Brand.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\BrandRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassBrandRepository::class)]
  6. #[ORM\Index(columns: ['name'], name'brand_name_idx')]
  7. class Brand
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(length500)]
  14.     private ?string $name null;
  15.     #[ORM\Column(length255)]
  16.     private ?string $logo null;
  17.     public function getId(): ?int
  18.     {
  19.         return $this->id;
  20.     }
  21.     public function getName(): ?string
  22.     {
  23.         return $this->name;
  24.     }
  25.     public function setName(string $name): static
  26.     {
  27.         $this->name $name;
  28.         return $this;
  29.     }
  30.     public function getLogo(): ?string
  31.     {
  32.         return $this->logo;
  33.     }
  34.     public function setLogo(string $logo): static
  35.     {
  36.         $this->logo $logo;
  37.         return $this;
  38.     }
  39. }