src/Entity/AnniversaireClient.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Entity\Traits\TimestampableTrait;
  4. use App\Repository\AnniversaireClientRepository;
  5. use DateTime;
  6. use DateTimeImmutable;
  7. use Doctrine\ORM\Mapping as ORM;
  8. #[ORM\Entity(repositoryClassAnniversaireClientRepository::class)]
  9. class AnniversaireClient
  10. {
  11.     use TimestampableTrait;
  12.     #[ORM\Id]
  13.     #[ORM\GeneratedValue]
  14.     #[ORM\Column(type'integer')]
  15.     private $id;
  16.     #[ORM\Column(type'string'length255)]
  17.     private ?string $firstName;
  18.     #[ORM\Column(type'string'length255)]
  19.     private ?string $lastName;
  20.     #[ORM\Column(type'string'length255)]
  21.     private ?string $phone;
  22.     #[ORM\Column(type'date')]
  23.     private \DateTimeInterface $birthDate;
  24.     #[ORM\ManyToOne(targetEntityAccountingFirm::class, inversedBy'anniversaireClient')]
  25.     private AccountingFirm $accountingFirm;
  26.     #[ORM\Column(type'string'length160nullabletrue)]
  27.     private ?string $message null;
  28.     #[ORM\Column(type'boolean')]
  29.     private bool $isScheduled false;
  30.     #[ORM\ManyToOne(targetEntityStakeholder::class)]
  31.     private $stakeholder;
  32.     public function getId(): ?int
  33.     {
  34.         return $this->id;
  35.     }
  36.     public function getFirstName(): ?string
  37.     {
  38.         return $this->firstName;
  39.     }
  40.     public function setFirstName(string $name): self
  41.     {
  42.         $this->firstName $name;
  43.         return $this;
  44.     }
  45.     public function getLastName(): ?string
  46.     {
  47.         return $this->lastName;
  48.     }
  49.     public function setLastName(string $name): self
  50.     {
  51.         $this->lastName $name;
  52.         return $this;
  53.     }
  54.     public function getPhone(): ?string
  55.     {
  56.         return $this->phone;
  57.     }
  58.     public function setPhone(string $phone): self
  59.     {
  60.         $this->phone $phone;
  61.         return $this;
  62.     }
  63.     public function setAccountingFirm(AccountingFirm $accountingFirm): self {
  64.         $this->accountingFirm $accountingFirm;
  65.         return $this;
  66.     }
  67.     public function getAccountingFirm(): AccountingFirm{
  68.         return $this->accountingFirm;
  69.     }
  70.     public function getBirthDate(): \DateTimeInterface
  71.     {
  72.         return $this->birthDate;
  73.     }
  74.     public function setBirthDate(\DateTimeInterface $birthDate): self
  75.     {
  76.         $this->birthDate $birthDate;
  77.         return $this;
  78.     }
  79.     public function getMessage(): ?string
  80.     {
  81.         return $this->message;
  82.     }
  83.     public function setMessage(?string $message): self
  84.     {
  85.         $this->message $message;
  86.         
  87.         return $this;
  88.     }
  89.     public function isScheduled(): bool
  90.     {
  91.         return $this->isScheduled;
  92.     }
  93.     public function setIsScheduled(bool $isScheduled): self
  94.     {
  95.         $this->isScheduled $isScheduled;
  96.         return $this;
  97.     }
  98.     public function getStakeholder(): ?Stakeholder
  99.     {
  100.         return $this->stakeholder;
  101.     }
  102.     public function setStakeholder(?Stakeholder $stakeholder): self
  103.     {
  104.         $this->stakeholder $stakeholder;
  105.         return $this;
  106.     }
  107. }