src/Entity/Customer.php line 11

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CustomerRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
  7. #[ORM\Entity(repositoryClassCustomerRepository::class)]
  8. class Customer
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column]
  13.     private ?int $id null;
  14.     #[ORM\Column(length255nullabletrue)]
  15.     private ?string $name null;
  16.     #[ORM\Column(length255nullabletrue)]
  17.     private ?string $contactAdministrative null;
  18.     #[ORM\Column(length255)]
  19.     private ?string $email null;
  20.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  21.     private ?string $otherInfonull;
  22.     #[ORM\Column(type'string',nullabletrue)]
  23.     private ?string $infoFilename "";
  24.     #[ORM\Column(length60nullabletrue)]
  25.     private ?string $tel null;
  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): static
  35.     {
  36.         $this->name $name;
  37.         return $this;
  38.     }
  39.     public function getContactAdministrative(): ?string
  40.     {
  41.         return $this->contactAdministrative;
  42.     }
  43.     public function setContactAdministrative(?string $contactAdministrative): static
  44.     {
  45.         $this->contactAdministrative $contactAdministrative;
  46.         return $this;
  47.     }
  48.     public function getEmail(): ?string
  49.     {
  50.         return $this->email;
  51.     }
  52.     public function setEmail(string $email): static
  53.     {
  54.         $this->email $email;
  55.         return $this;
  56.     }
  57.     public function getOtherInfo(): ?string
  58.     {
  59.         return $this->otherInfo;
  60.     }
  61.     public function setOtherInfo(?string $otherInfo): self
  62.     {
  63.         $this->otherInfo $otherInfo;
  64.         return $this;
  65.     }
  66.     public function getInfoFilename(): string
  67.     {
  68.         return $this->infoFilename $this->infoFilename:'';
  69.     }
  70.     public function setInfoFilename(string $infoFilename): self
  71.     {
  72.         $this->infoFilename $infoFilename;
  73.         return $this;
  74.     }
  75.     public function getTel(): ?string
  76.     {
  77.         return $this->tel;
  78.     }
  79.     public function setTel(?string $tel): self
  80.     {
  81.         $this->tel $tel;
  82.         return $this;
  83.     }
  84. }