src/Entity/ElectronicInvoiceContact.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ElectronicInvoiceContactRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassElectronicInvoiceContactRepository::class)]
  6. class ElectronicInvoiceContact
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column(type'integer')]
  11.     private $id;
  12.     #[ORM\Column(type'string'length255)]
  13.     private $company;
  14.     #[ORM\Column(type'string'length255)]
  15.     private $firstname;
  16.     #[ORM\Column(type'string'length255)]
  17.     private $lastname;
  18.     #[ORM\Column(type'string'length255)]
  19.     private $phone;
  20.     #[ORM\Column(type'string'length255)]
  21.     private $email;
  22.     #[ORM\Column(type'text')]
  23.     private $message;
  24.     #[ORM\Column(type'datetime_immutable')]
  25.     private $createdAt;
  26.     #[ORM\ManyToOne(targetEntityAccountingFirm::class, inversedBy'electronicInvoiceContacts')]
  27.     private $accountingFirm;
  28.     public function getId(): ?int
  29.     {
  30.         return $this->id;
  31.     }
  32.     public function getCompany(): ?string
  33.     {
  34.         return $this->company;
  35.     }
  36.     public function setCompany(string $company): self
  37.     {
  38.         $this->company $company;
  39.         return $this;
  40.     }
  41.     public function getFirstname(): ?string
  42.     {
  43.         return $this->firstname;
  44.     }
  45.     public function setFirstname(string $firstname): self
  46.     {
  47.         $this->firstname $firstname;
  48.         return $this;
  49.     }
  50.     public function getLastname(): ?string
  51.     {
  52.         return $this->lastname;
  53.     }
  54.     public function setLastname(string $lastname): self
  55.     {
  56.         $this->lastname $lastname;
  57.         return $this;
  58.     }
  59.     public function getPhone(): ?string
  60.     {
  61.         return $this->phone;
  62.     }
  63.     public function setPhone(string $phone): self
  64.     {
  65.         $this->phone $phone;
  66.         return $this;
  67.     }
  68.     public function getEmail(): ?string
  69.     {
  70.         return $this->email;
  71.     }
  72.     public function setEmail(string $email): self
  73.     {
  74.         $this->email $email;
  75.         return $this;
  76.     }
  77.     public function getMessage(): ?string
  78.     {
  79.         return $this->message;
  80.     }
  81.     public function setMessage(string $message): self
  82.     {
  83.         $this->message $message;
  84.         return $this;
  85.     }
  86.     public function getCreatedAt(): ?\DateTimeImmutable
  87.     {
  88.         return $this->createdAt;
  89.     }
  90.     public function setCreatedAt(\DateTimeImmutable $createdAt): self
  91.     {
  92.         $this->createdAt $createdAt;
  93.         return $this;
  94.     }
  95.     public function getAccountingFirm(): ?AccountingFirm
  96.     {
  97.         return $this->accountingFirm;
  98.     }
  99.     public function setAccountingFirm(?AccountingFirm $accountingFirm): self
  100.     {
  101.         $this->accountingFirm $accountingFirm;
  102.         return $this;
  103.     }
  104. }