src/Entity/CRM/CommercialOfferIndividual.php line 10

  1. <?php
  2. namespace App\Entity\CRM;
  3. use App\Repository\CommercialOfferIndividualRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassCommercialOfferIndividualRepository::class)]
  7. class CommercialOfferIndividual
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(typeTypes::TEXT)]
  14.     private ?string $htmlContent null;
  15.     #[ORM\Column(length255)]
  16.     private ?string $documentPath null;
  17.     #[ORM\ManyToOne(inversedBy'commercialOfferIndividuals')]
  18.     #[ORM\JoinColumn]
  19.     private ?CustomerAddress $customerAddress null;
  20.     #[ORM\ManyToOne(inversedBy'commercialOfferIndividuals')]
  21.     private ?Consultant $createdByConsultant null;
  22.     #[ORM\ManyToOne(inversedBy'commercialOfferIndividuals')]
  23.     private ?Admin $createdByAdmin null;
  24.     #[ORM\ManyToOne(inversedBy'commercialOfferIndividuals')]
  25.     #[ORM\JoinColumn(nullablefalse)]
  26.     private ?CommercialOffer $commercialOffer null;
  27.     #[ORM\ManyToOne(inversedBy'individualOffers')]
  28.     #[ORM\JoinColumn(nullablefalse)]
  29.     private ?CommercialOfferSendings $commercialOfferSendings null;
  30.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  31.     private ?\DateTimeInterface $addedDate null;
  32. //    #[ORM\Column]
  33. //    private ?bool $isAccepted = null;
  34. //
  35. //    #[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
  36. //    private ?\DateTimeInterface $acceptedDate = null;
  37. //
  38. //    #[ORM\ManyToOne(inversedBy: 'commercialOfferIndividualsAccepted')]
  39. //    private ?Admin $acceptedBy = null;
  40.     #[ORM\Column(typeTypes::DATE_MUTABLE)]
  41.     private ?\DateTimeInterface $startDate null;
  42.     #[ORM\Column(typeTypes::DATE_MUTABLE)]
  43.     private ?\DateTimeInterface $endDate null;
  44.     #[ORM\Column]
  45.     private ?float $price null;
  46.     #[ORM\Column(length255)]
  47.     private ?string $note null;
  48.     #[ORM\ManyToOne(inversedBy'commercialOfferIndividuals')]
  49.     #[ORM\JoinColumn(nullablefalse)]
  50.     private ?Branch $branch null;
  51.     #[ORM\Column(length255nullabletrue)]
  52.     private ?string $recipientFirstName null;
  53.     #[ORM\Column(length255nullabletrue)]
  54.     private ?string $recipientLastName null;
  55.     #[ORM\Column(length255nullabletrue)]
  56.     private ?string $recipientEmail null;
  57.     public function getId(): ?int
  58.     {
  59.         return $this->id;
  60.     }
  61.     public function getHtmlContent(): ?string
  62.     {
  63.         return $this->htmlContent;
  64.     }
  65.     public function setHtmlContent(string $htmlContent): static
  66.     {
  67.         $this->htmlContent $htmlContent;
  68.         return $this;
  69.     }
  70.     public function getDocumentPath(): ?string
  71.     {
  72.         return $this->documentPath;
  73.     }
  74.     public function setDocumentPath(string $documentPath): static
  75.     {
  76.         $this->documentPath $documentPath;
  77.         return $this;
  78.     }
  79.     public function getCustomerAddress(): ?CustomerAddress
  80.     {
  81.         return $this->customerAddress;
  82.     }
  83.     public function setCustomerAddress(?CustomerAddress $customerAddress): static
  84.     {
  85.         $this->customerAddress $customerAddress;
  86.         return $this;
  87.     }
  88.     public function getCreatedByConsultant(): ?Consultant
  89.     {
  90.         return $this->createdByConsultant;
  91.     }
  92.     public function setCreatedByConsultant(?Consultant $createdByConsultant): static
  93.     {
  94.         $this->createdByConsultant $createdByConsultant;
  95.         return $this;
  96.     }
  97.     public function getCreatedByAdmin(): ?Admin
  98.     {
  99.         return $this->createdByAdmin;
  100.     }
  101.     public function setCreatedByAdmin(?Admin $createdByAdmin): static
  102.     {
  103.         $this->createdByAdmin $createdByAdmin;
  104.         return $this;
  105.     }
  106.     public function getCommercialOffer(): ?CommercialOffer
  107.     {
  108.         return $this->commercialOffer;
  109.     }
  110.     public function setCommercialOffer(?CommercialOffer $commercialOffer): static
  111.     {
  112.         $this->commercialOffer $commercialOffer;
  113.         return $this;
  114.     }
  115.     public function getCommercialOfferSendings(): ?CommercialOfferSendings
  116.     {
  117.         return $this->commercialOfferSendings;
  118.     }
  119.     public function setCommercialOfferSendings(?CommercialOfferSendings $commercialOfferSendings): static
  120.     {
  121.         $this->commercialOfferSendings $commercialOfferSendings;
  122.         return $this;
  123.     }
  124.     public function getAddedDate(): ?\DateTimeInterface
  125.     {
  126.         return $this->addedDate;
  127.     }
  128.     public function setAddedDate(\DateTimeInterface $addedDate): static
  129.     {
  130.         $this->addedDate $addedDate;
  131.         return $this;
  132.     }
  133. //    public function isAccepted(): ?bool
  134. //    {
  135. //        return $this->isAccepted;
  136. //    }
  137. //
  138. //    public function setIsAccepted(bool $isAccepted): static
  139. //    {
  140. //        $this->isAccepted = $isAccepted;
  141. //
  142. //        return $this;
  143. //    }
  144. //
  145. //    public function getAcceptedDate(): ?\DateTimeInterface
  146. //    {
  147. //        return $this->acceptedDate;
  148. //    }
  149. //
  150. //    public function setAcceptedDate(?\DateTimeInterface $acceptedDate): static
  151. //    {
  152. //        $this->acceptedDate = $acceptedDate;
  153. //
  154. //        return $this;
  155. //    }
  156. //
  157. //    public function getAcceptedBy(): ?Admin
  158. //    {
  159. //        return $this->acceptedBy;
  160. //    }
  161. //
  162. //    public function setAcceptedBy(?Admin $acceptedBy): static
  163. //    {
  164. //        $this->acceptedBy = $acceptedBy;
  165. //
  166. //        return $this;
  167. //    }
  168.     public function getStartDate(): ?\DateTimeInterface
  169.     {
  170.         return $this->startDate;
  171.     }
  172.     public function setStartDate(\DateTimeInterface $startDate): static
  173.     {
  174.         $this->startDate $startDate;
  175.         return $this;
  176.     }
  177.     public function getEndDate(): ?\DateTimeInterface
  178.     {
  179.         return $this->endDate;
  180.     }
  181.     public function setEndDate(\DateTimeInterface $endDate): static
  182.     {
  183.         $this->endDate $endDate;
  184.         return $this;
  185.     }
  186.     public function getPrice(): ?float
  187.     {
  188.         return $this->price;
  189.     }
  190.     public function setPrice(float $price): static
  191.     {
  192.         $this->price $price;
  193.         return $this;
  194.     }
  195.     public function getNote(): ?string
  196.     {
  197.         return $this->note;
  198.     }
  199.     public function setNote(string $note): static
  200.     {
  201.         $this->note $note;
  202.         return $this;
  203.     }
  204.     public function getBranch(): ?Branch
  205.     {
  206.         return $this->branch;
  207.     }
  208.     public function setBranch(?Branch $branch): static
  209.     {
  210.         $this->branch $branch;
  211.         return $this;
  212.     }
  213.     public function getRecipientFirstName(): ?string
  214.     {
  215.         return $this->recipientFirstName;
  216.     }
  217.     public function setRecipientFirstName(string $recipientFirstName): static
  218.     {
  219.         $this->recipientFirstName $recipientFirstName;
  220.         return $this;
  221.     }
  222.     public function getRecipientLastName(): ?string
  223.     {
  224.         return $this->recipientLastName;
  225.     }
  226.     public function setRecipientLastName(?string $recipientLastName): static
  227.     {
  228.         $this->recipientLastName $recipientLastName;
  229.         return $this;
  230.     }
  231.     public function getRecipientEmail(): ?string
  232.     {
  233.         return $this->recipientEmail;
  234.     }
  235.     public function setRecipientEmail(?string $recipientEmail): static
  236.     {
  237.         $this->recipientEmail $recipientEmail;
  238.         return $this;
  239.     }
  240. }