src/Entity/CustomerInfoType.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CustomerInfoTypeRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassCustomerInfoTypeRepository::class)]
  7. class CustomerInfoType
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\ManyToOne(inversedBy'customerInfoTypes')]
  14.     #[ORM\JoinColumn(nullablefalse)]
  15.     private ?Customer $customer null;
  16.     #[ORM\ManyToOne(inversedBy'customerInfoTypes')]
  17.     private ?InfoType $info_type null;
  18.     #[ORM\Column(typeTypes::TEXT)]
  19.     private ?string $info_value null;
  20.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  21.     private ?string $info_desc null;
  22.     public function getId(): ?int
  23.     {
  24.         return $this->id;
  25.     }
  26.     public function getCustomer(): ?Customer
  27.     {
  28.         return $this->customer;
  29.     }
  30.     public function setCustomer(?Customer $customer): self
  31.     {
  32.         $this->customer $customer;
  33.         return $this;
  34.     }
  35.     public function getInfoType(): ?InfoType
  36.     {
  37.         return $this->info_type;
  38.     }
  39.     public function setInfoType(?InfoType $info_type): self
  40.     {
  41.         $this->info_type $info_type;
  42.         return $this;
  43.     }
  44.     public function getInfoValue(): ?string
  45.     {
  46.         return $this->info_value;
  47.     }
  48.     public function setInfoValue(string $info_value): self
  49.     {
  50.         $this->info_value $info_value;
  51.         return $this;
  52.     }
  53.     public function getInfoDesc(): ?string
  54.     {
  55.         return $this->info_desc;
  56.     }
  57.     public function setInfoDesc(?string $info_desc): self
  58.     {
  59.         $this->info_desc $info_desc;
  60.         return $this;
  61.     }
  62. }