src/Flexy/ShopBundle/Entity/Supplier/Supplier.php line 10

  1. <?php
  2. namespace App\Flexy\ShopBundle\Entity\Supplier;
  3. use App\Repository\Flexy\ShopBundle\Entity\Supplier\SupplierRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassSupplierRepository::class)]
  7. class Supplier
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(length255)]
  14.     private ?string $name null;
  15.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  16.     private ?string $description 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): self
  26.     {
  27.         $this->name $name;
  28.         return $this;
  29.     }
  30.     public function getDescription(): ?string
  31.     {
  32.         return $this->description;
  33.     }
  34.     public function setDescription(?string $description): self
  35.     {
  36.         $this->description $description;
  37.         return $this;
  38.     }
  39. }