src/Entity/ContactProfession.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ContactProfessionRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassContactProfessionRepository::class)]
  6. class ContactProfession
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column(type'integer')]
  11.     private $id;
  12.     #[ORM\Column(type'string'length255)]
  13.     private $name;
  14.     #[ORM\Column(type'string'length255nullabletrue)]
  15.     private $email;
  16.     #[ORM\Column(type'string'length255nullabletrue)]
  17.     private $phone;
  18.     #[ORM\Column(type'string'length255nullabletrue)]
  19.     private $profession;
  20.     #[ORM\Column(type'text'nullabletrue)]
  21.     private $message;
  22.     #[ORM\Column(type'boolean'nullabletrue)]
  23.     private $rgpd;
  24.     #[ORM\Column(type'datetime'nullabletrue)]
  25.     private $dateadd;
  26.     #[ORM\Column(type'string'length255nullabletrue)]
  27.     private $page;
  28.     #[ORM\Column(type'boolean'nullabletrueoptions: ['default' => 0])]
  29.     private $isadmin false;
  30.     #[ORM\Column(type'string'length255nullabletrue)]
  31.     private $subject;
  32.     #[ORM\ManyToOne(targetEntityAccountingFirm::class, inversedBy'contactsProfession')]
  33.     private $accountingFirm;
  34.     public function getId(): ?int
  35.     {
  36.         return $this->id;
  37.     }
  38.     public function getName(): ?string
  39.     {
  40.         return $this->name;
  41.     }
  42.     public function setName(string $name): self
  43.     {
  44.         $this->name $name;
  45.         return $this;
  46.     }
  47.     public function getEmail(): ?string
  48.     {
  49.         return $this->email;
  50.     }
  51.     public function setEmail(?string $email): self
  52.     {
  53.         $this->email $email;
  54.         return $this;
  55.     }
  56.     public function getPhone(): ?string
  57.     {
  58.         return $this->phone;
  59.     }
  60.     public function setPhone(?string $phone): self
  61.     {
  62.         $this->phone $phone;
  63.         return $this;
  64.     }
  65.     public function getProfession(): ?string
  66.     {
  67.         return $this->profession;
  68.     }
  69.     public function setProfession(?string $profession): self
  70.     {
  71.         $this->profession $profession;
  72.         return $this;
  73.     }
  74.     public function getMessage(): ?string
  75.     {
  76.         return $this->message;
  77.     }
  78.     public function setMessage(?string $message): self
  79.     {
  80.         $this->message $message;
  81.         return $this;
  82.     }
  83.     public function getRgpd(): ?bool
  84.     {
  85.         return $this->rgpd;
  86.     }
  87.     public function setRgpd(?bool $rgpd): self
  88.     {
  89.         $this->rgpd $rgpd;
  90.         return $this;
  91.     }
  92.     public function getDateadd(): ?\DateTimeInterface
  93.     {
  94.         return $this->dateadd;
  95.     }
  96.     public function setDateadd(?\DateTimeInterface $dateadd): self
  97.     {
  98.         $this->dateadd $dateadd;
  99.         return $this;
  100.     }
  101.     public function getPage(): ?string
  102.     {
  103.         return $this->page;
  104.     }
  105.     public function setPage(?string $page): self
  106.     {
  107.         $this->page $page;
  108.         return $this;
  109.     }
  110.     public function getIsadmin(): ?bool
  111.     {
  112.         return $this->isadmin;
  113.     }
  114.     public function setIsadmin(?bool $isadmin): self
  115.     {
  116.         $this->isadmin $isadmin;
  117.         return $this;
  118.     }
  119.     public function getsubject(): ?string
  120.     {
  121.         return $this->subject;
  122.     }
  123.     public function setsubject(?string $subject): self
  124.     {
  125.         $this->subject $subject;
  126.         return $this;
  127.     }
  128.     public function getAccountingFirm(): ?AccountingFirm
  129.     {
  130.         return $this->accountingFirm;
  131.     }
  132.     public function setAccountingFirm(?AccountingFirm $accountingFirm): self
  133.     {
  134.         $this->accountingFirm $accountingFirm;
  135.         return $this;
  136.     }
  137. }