src/Entity/Investisseur.php line 11

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\InvestisseurRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassInvestisseurRepository::class)]
  8. class Investisseur
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column]
  13.     private ?int $id null;
  14.     #[ORM\Column(length255nullabletrue)]
  15.     private ?string $nom null;
  16.     #[ORM\Column(length255nullabletrue)]
  17.     private ?string $ville null;
  18.     #[ORM\Column(length255nullabletrue)]
  19.     private ?string $phone null;
  20.     #[ORM\Column(length255nullabletrue)]
  21.     private ?string $email null;
  22.     #[ORM\Column(nullabletrue)]
  23.     private ?\DateTimeImmutable $createAt null;
  24.     #[ORM\Column(length255nullabletrue)]
  25.     private ?string $firstName null;
  26.     #[ORM\Column(length255nullabletrue)]
  27.     private ?string $lastName null;
  28.     #[ORM\Column(length255nullabletrue)]
  29.     private ?string $address null;
  30.     #[ORM\Column(length255nullabletrue)]
  31.     private ?string $companyName null;
  32.     #[ORM\Column(length255nullabletrue)]
  33.     private ?string $companyAddress null;
  34.     #[ORM\Column(length255nullabletrue)]
  35.     private ?string $desiredInvestmentType null;
  36.     #[ORM\OneToMany(targetEntityPartAction::class, mappedBy'investisseur')]
  37.     private Collection $actions;
  38.     #[ORM\Column(length255nullabletrue)]
  39.     private ?string $investmentAmount null;
  40.     #[ORM\Column(length255)]
  41.     private ?string $cniNumber null;
  42.     #[ORM\Column(length255type"datetime")]
  43.     private ?\DateTimeInterface $dateExpiration null;
  44.     public function __construct()
  45.     {
  46.         $this->actions = new ArrayCollection();
  47.     }
  48.     public function getInvestmentAmount(): ?string
  49.     {
  50.         return $this->investmentAmount;
  51.     }
  52.     public function setInvestmentAmount(?string $investmentAmount): static
  53.     {
  54.         $this->investmentAmount $investmentAmount;
  55.         return $this;
  56.     }
  57.     public function getFirstName(): ?string
  58.     {
  59.         return $this->firstName;
  60.     }
  61.     public function setFirstName(?string $firstName): static
  62.     {
  63.         $this->firstName $firstName;
  64.         return $this;
  65.     }
  66.     public function getLastName(): ?string
  67.     {
  68.         return $this->lastName;
  69.     }
  70.     public function setLastName(?string $lastName): static
  71.     {
  72.         $this->lastName $lastName;
  73.         return $this;
  74.     }
  75.     public function getAddress(): ?string
  76.     {
  77.         return $this->address;
  78.     }
  79.     public function setAddress(?string $address): static
  80.     {
  81.         $this->address $address;
  82.         return $this;
  83.     }
  84.     public function getCompanyName(): ?string
  85.     {
  86.         return $this->companyName;
  87.     }
  88.     public function setCompanyName(?string $companyName): static
  89.     {
  90.         $this->companyName $companyName;
  91.         return $this;
  92.     }
  93.     public function getCompanyAddress(): ?string
  94.     {
  95.         return $this->companyAddress;
  96.     }
  97.     public function setCompanyAddress(?string $companyAddress): static
  98.     {
  99.         $this->companyAddress $companyAddress;
  100.         return $this;
  101.     }
  102.     public function getDesiredInvestmentType(): ?string
  103.     {
  104.         return $this->desiredInvestmentType;
  105.     }
  106.     public function setDesiredInvestmentType(?string $desiredInvestmentType): static
  107.     {
  108.         $this->desiredInvestmentType $desiredInvestmentType;
  109.         return $this;
  110.     }
  111.     /**
  112.      * @return Collection<int, PartAction>
  113.      */
  114.     public function getActions(): Collection
  115.     {
  116.         return $this->actions;
  117.     }
  118.     public function addAction(PartAction $action): static
  119.     {
  120.         if (!$this->actions->contains($action)) {
  121.             $this->actions[] = $action;
  122.             $action->setInvestisseur($this);
  123.         }
  124.         return $this;
  125.     }
  126.     public function removeAction(PartAction $action): static
  127.     {
  128.         $this->actions->removeElement($action);
  129.         if ($action->getInvestisseur() === $this) {
  130.             $action->setInvestisseur(null);
  131.         }
  132.         return $this;
  133.     }
  134.     public function getId(): ?int
  135.     {
  136.         return $this->id;
  137.     }
  138.     public function getNom(): ?string
  139.     {
  140.         return $this->nom;
  141.     }
  142.     public function setNom(?string $nom): static
  143.     {
  144.         $this->nom $nom;
  145.         return $this;
  146.     }
  147.     public function getVille(): ?string
  148.     {
  149.         return $this->ville;
  150.     }
  151.     public function setVille(?string $ville): static
  152.     {
  153.         $this->ville $ville;
  154.         return $this;
  155.     }
  156.     public function getPhone(): ?string
  157.     {
  158.         return $this->phone;
  159.     }
  160.     public function setPhone(?string $phone): static
  161.     {
  162.         $this->phone $phone;
  163.         return $this;
  164.     }
  165.     public function getEmail(): ?string
  166.     {
  167.         return $this->email;
  168.     }
  169.     public function setEmail(?string $email): static
  170.     {
  171.         $this->email $email;
  172.         return $this;
  173.     }
  174.     public function getCreateAt(): ?\DateTimeImmutable
  175.     {
  176.         return $this->createAt;
  177.     }
  178.     public function setCreateAt(?\DateTimeImmutable $createAt): static
  179.     {
  180.         $this->createAt $createAt;
  181.         return $this;
  182.     }
  183.     public function getCniNumber(): ?string
  184.     {
  185.         return $this->cniNumber;
  186.     }
  187.     public function setCniNumber(string $cniNumber): static
  188.     {
  189.         $this->cniNumber $cniNumber;
  190.         return $this;
  191.     }
  192.     public function getDateExpiration(): ?\DateTimeInterface
  193.     {
  194.         return $this->dateExpiration;
  195.     }
  196.     public function setDateExpiration(?\DateTimeInterface $dateExpiration): self
  197.     {
  198.         $this->dateExpiration $dateExpiration;
  199.         return $this;
  200.     }
  201. }