src/Entity/CustomerBP.php line 17

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CustomerBPRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. use Gedmo\Mapping\Annotation as Gedmo;
  8. use Symfony\Component\Validator\Constraints as Assert;
  9. use Gedmo\SoftDeleteable\Traits\SoftDeleteableEntity;
  10. /**
  11.  * @ORM\Entity(repositoryClass=CustomerBPRepository::class)
  12.  * @Gedmo\SoftDeleteable(fieldName="deletedAt", timeAware=false, hardDelete=true)
  13.  */
  14. class CustomerBP extends BaseEntity
  15. {
  16.     use SoftDeleteableEntity;
  17.     /**
  18.      * @ORM\Id
  19.      * @ORM\GeneratedValue(strategy="AUTO")
  20.      * @ORM\Column(type="integer")
  21.      */
  22.     private $id;
  23.     /**
  24.      * @var User $createdBy
  25.      * @Gedmo\Blameable(on="create")
  26.      * @ORM\ManyToOne(targetEntity="User")
  27.      *
  28.      */
  29.     /**
  30.      * @Assert\Valid
  31.      * @ORM\ManyToOne(targetEntity=ImageManager::class, cascade={"persist", "remove"})
  32.      */
  33.     private $cover;
  34.     /**
  35.      * @ORM\Column(type="string", length=255, nullable=true)
  36.      */
  37.     private $businessName;
  38.     /**
  39.      * @ORM\Column(type="text", nullable=true)
  40.      */
  41.     private $projectDescription;
  42.     /**
  43.      * @ORM\Column(type="string", length=255, nullable=true)
  44.      */
  45.     private $beneficiaryFirstName;
  46.     /**
  47.      * @ORM\Column(type="string", length=255, nullable=true)
  48.      */
  49.     private $beneficiaryLastName;
  50.     /**
  51.      * @ORM\Column(type="string", length=255, nullable=true)
  52.      */
  53.     private $beneficiarySex;
  54.     /**
  55.      * @ORM\Column(type="string", length=255, nullable=true)
  56.      */
  57.     private $beneficiaryMaritalStatus;
  58.     /**
  59.      * @ORM\Column(type="string", length=255, nullable=true)
  60.      */
  61.     private $beneficiaryPhoneNumber;
  62.     /**
  63.      * @ORM\Column(type="string", length=255, nullable=true)
  64.      */
  65.     private $beneficiaryAddress;
  66.     /**
  67.      * @ORM\Column(type="string", length=255, nullable=true)
  68.      */
  69.     private $beneficiaryStudyLevel;
  70.     /**
  71.      * @ORM\Column(type="text", nullable=true)
  72.      */
  73.     private $marketDescription;
  74.     /**
  75.      * @ORM\ManyToOne(targetEntity=BPModel::class, inversedBy="customerBPs")
  76.      * @ORM\JoinColumn(nullable=false)
  77.      */
  78.     private $bpModel;
  79.     /**
  80.      * @ORM\OneToMany(targetEntity=CustomerVariable::class, mappedBy="customerBp", cascade={"persist", "remove"})
  81.      */
  82.     private $customerVariables;
  83.     /**
  84.      * @ORM\Column(type="text", nullable=true)
  85.      */
  86.     private $projectSummary;
  87.     /**
  88.      * @ORM\Column(type="date", nullable=true)
  89.      */
  90.     private $customerDateOfBirth;
  91.     /**
  92.      * @ORM\Column(type="string", length=255, nullable=true)
  93.      */
  94.     private $customerPlaceOfBirth;
  95.     /**
  96.      * @ORM\Column(type="text", nullable=true)
  97.      */
  98.     private $humanResource;
  99.     /**
  100.      * @ORM\Column(type="text", nullable=true)
  101.      */
  102.     private $planningDescription;
  103.     /**
  104.      * @ORM\Column(type="text", nullable=true)
  105.      */
  106.     private $materialResource;
  107.     /**
  108.      * @ORM\Column(type="text", nullable=true)
  109.      */
  110.     private $workingCapital;
  111.     /**
  112.      * @ORM\Column(type="text", nullable=true)
  113.      */
  114.     private $fundNeed;
  115.     /**
  116.      * @ORM\Column(type="text", nullable=true)
  117.      */
  118.     private $previsionRevenue;
  119.     /**
  120.      * @ORM\Column(type="text", nullable=true)
  121.      */
  122.     private $statement;
  123.     /**
  124.      * @ORM\Column(type="text", nullable=true)
  125.      */
  126.     private $cashflowYear;
  127.     /**
  128.      * @ORM\Column(type="text", nullable=true)
  129.      */
  130.     private $cashflowMonth;
  131.     /**
  132.      * @ORM\Column(type="text", nullable=true)
  133.      */
  134.     private $pAndl;
  135.     /**
  136.      * @ORM\Column(type="text", nullable=true)
  137.      */
  138.     private $immobilisation;
  139.     /**
  140.      * @ORM\Column(type="text", nullable=true)
  141.      */
  142.     private $charges;
  143.     /**
  144.      * @ORM\Column(type="string", length=255, nullable=true)
  145.      */
  146.     private $businessTitle;
  147.     /**
  148.      * @ORM\Column(type="text", nullable=true)
  149.      */
  150.     private $financialFees;
  151.     /**
  152.      * @ORM\Column(type="boolean", nullable=true)
  153.      */
  154.     private $isDefault false;
  155.     /**
  156.      * @ORM\Column(type="boolean", nullable="false", options={"default" : 0})
  157.      */
  158.     private $generation false;
  159.     /**
  160.      * @ORM\ManyToOne(targetEntity=Subscription::class)
  161.      */
  162.     private $subscription;
  163.     /**
  164.      * @ORM\Column(type="string", length=255, nullable=true)
  165.      */
  166.     private $reference;
  167.     /**
  168.      * @ORM\Column(type="text", nullable=true)
  169.      */
  170.     private $van;
  171.     public function __construct()
  172.     {
  173.         $this->customerVariables = new ArrayCollection();
  174.     }
  175.     public function getId(): ?int
  176.     {
  177.         return $this->id;
  178.     }
  179.     public function getCover(): ?ImageManager
  180.     {
  181.         return $this->cover;
  182.     }
  183.     public function setCover(?ImageManager $cover): self
  184.     {
  185.         $this->cover $cover;
  186.         return $this;
  187.     }
  188.     public function getBusinessName(): ?string
  189.     {
  190.         return $this->businessName;
  191.     }
  192.     public function setBusinessName(?string $businessName): self
  193.     {
  194.         $this->businessName $businessName;
  195.         return $this;
  196.     }
  197.     public function getProjectDescription(): ?string
  198.     {
  199.         return $this->projectDescription;
  200.     }
  201.     public function setProjectDescription(?string $projectDescription): self
  202.     {
  203.         $this->projectDescription $projectDescription;
  204.         return $this;
  205.     }
  206.     public function getBeneficiaryFirstName(): ?string
  207.     {
  208.         return $this->beneficiaryFirstName;
  209.     }
  210.     public function setBeneficiaryFirstName(?string $beneficiaryFirstName): self
  211.     {
  212.         $this->beneficiaryFirstName $beneficiaryFirstName;
  213.         return $this;
  214.     }
  215.     public function getBeneficiaryLastName(): ?string
  216.     {
  217.         return $this->beneficiaryLastName;
  218.     }
  219.     public function setBeneficiaryLastName(?string $beneficiaryLastName): self
  220.     {
  221.         $this->beneficiaryLastName $beneficiaryLastName;
  222.         return $this;
  223.     }
  224.     public function getBeneficiarySex(): ?string
  225.     {
  226.         return $this->beneficiarySex;
  227.     }
  228.     public function setBeneficiarySex(?string $beneficiarySex): self
  229.     {
  230.         $this->beneficiarySex $beneficiarySex;
  231.         return $this;
  232.     }
  233.     public function getBeneficiaryMaritalStatus(): ?string
  234.     {
  235.         return $this->beneficiaryMaritalStatus;
  236.     }
  237.     public function setBeneficiaryMaritalStatus(?string $beneficiaryMaritalStatus): self
  238.     {
  239.         $this->beneficiaryMaritalStatus $beneficiaryMaritalStatus;
  240.         return $this;
  241.     }
  242.     public function getBeneficiaryPhoneNumber(): ?string
  243.     {
  244.         return $this->beneficiaryPhoneNumber;
  245.     }
  246.     public function setBeneficiaryPhoneNumber(?string $beneficiaryPhoneNumber): self
  247.     {
  248.         $this->beneficiaryPhoneNumber $beneficiaryPhoneNumber;
  249.         return $this;
  250.     }
  251.     public function getBeneficiaryAddress(): ?string
  252.     {
  253.         return $this->beneficiaryAddress;
  254.     }
  255.     public function setBeneficiaryAddress(?string $beneficiaryAddress): self
  256.     {
  257.         $this->beneficiaryAddress $beneficiaryAddress;
  258.         return $this;
  259.     }
  260.     public function getBeneficiaryStudyLevel(): ?string
  261.     {
  262.         return $this->beneficiaryStudyLevel;
  263.     }
  264.     public function setBeneficiaryStudyLevel(?string $beneficiaryStudyLevel): self
  265.     {
  266.         $this->beneficiaryStudyLevel $beneficiaryStudyLevel;
  267.         return $this;
  268.     }
  269.     public function getMarketDescription(): ?string
  270.     {
  271.         return $this->marketDescription;
  272.     }
  273.     public function setMarketDescription(?string $marketDescription): self
  274.     {
  275.         $this->marketDescription $marketDescription;
  276.         return $this;
  277.     }
  278.     public function getBpModel(): ?BPModel
  279.     {
  280.         return $this->bpModel;
  281.     }
  282.     public function setBpModel(?BPModel $bpModel): self
  283.     {
  284.         $this->bpModel $bpModel;
  285.         return $this;
  286.     }
  287.     /**
  288.      * @return Collection<int, CustomerVariable>
  289.      */
  290.     public function getCustomerVariables(): Collection
  291.     {
  292.         return $this->customerVariables;
  293.     }
  294.     public function addCustomerVariable(CustomerVariable $customerVariable): self
  295.     {
  296.         if (!$this->customerVariables->contains($customerVariable)) {
  297.             $this->customerVariables[] = $customerVariable;
  298.             $customerVariable->setCustomerBp($this);
  299.         }
  300.         return $this;
  301.     }
  302.     public function removeCustomerVariable(CustomerVariable $customerVariable): self
  303.     {
  304.         if ($this->customerVariables->removeElement($customerVariable)) {
  305.             // set the owning side to null (unless already changed)
  306.             if ($customerVariable->getCustomerBp() === $this) {
  307.                 $customerVariable->setCustomerBp(null);
  308.             }
  309.         }
  310.         return $this;
  311.     }
  312.     public function getProjectSummary(): ?string
  313.     {
  314.         return $this->projectSummary;
  315.     }
  316.     public function setProjectSummary(?string $projectSummary): self
  317.     {
  318.         $this->projectSummary $projectSummary;
  319.         return $this;
  320.     }
  321.     public function getCustomerDateOfBirth(): ?\DateTimeInterface
  322.     {
  323.         return $this->customerDateOfBirth;
  324.     }
  325.     public function setCustomerDateOfBirth(?\DateTimeInterface $customerDateOfBirth): self
  326.     {
  327.         $this->customerDateOfBirth $customerDateOfBirth;
  328.         return $this;
  329.     }
  330.     public function getCustomerPlaceOfBirth(): ?string
  331.     {
  332.         return $this->customerPlaceOfBirth;
  333.     }
  334.     public function setCustomerPlaceOfBirth(?string $customerPlaceOfBirth): self
  335.     {
  336.         $this->customerPlaceOfBirth $customerPlaceOfBirth;
  337.         return $this;
  338.     }
  339.     public function getHumanResource(): ?string
  340.     {
  341.         return $this->humanResource;
  342.     }
  343.     public function setHumanResource(?string $humanResource): self
  344.     {
  345.         $this->humanResource $humanResource;
  346.         return $this;
  347.     }
  348.     public function getPlanningDescription(): ?string
  349.     {
  350.         return $this->planningDescription;
  351.     }
  352.     public function setPlanningDescription(?string $planningDescription): self
  353.     {
  354.         $this->planningDescription $planningDescription;
  355.         return $this;
  356.     }
  357.     public function getMaterialResource(): ?string
  358.     {
  359.         return $this->materialResource;
  360.     }
  361.     public function setMaterialResource(?string $materialResource): self
  362.     {
  363.         $this->materialResource $materialResource;
  364.         return $this;
  365.     }
  366.     public function getWorkingCapital(): ?string
  367.     {
  368.         return $this->workingCapital;
  369.     }
  370.     public function setWorkingCapital(?string $workingCapital): self
  371.     {
  372.         $this->workingCapital $workingCapital;
  373.         return $this;
  374.     }
  375.     public function getFundNeed(): ?string
  376.     {
  377.         return $this->fundNeed;
  378.     }
  379.     public function setFundNeed(?string $fundNeed): self
  380.     {
  381.         $this->fundNeed $fundNeed;
  382.         return $this;
  383.     }
  384.     public function getPrevisionRevenue(): ?string
  385.     {
  386.         return $this->previsionRevenue;
  387.     }
  388.     public function setPrevisionRevenue(?string $previsionRevenue): self
  389.     {
  390.         $this->previsionRevenue $previsionRevenue;
  391.         return $this;
  392.     }
  393.     public function getStatement(): ?string
  394.     {
  395.         return $this->statement;
  396.     }
  397.     public function setStatement(?string $statement): self
  398.     {
  399.         $this->statement $statement;
  400.         return $this;
  401.     }
  402.     public function getCashflowYear(): ?string
  403.     {
  404.         return $this->cashflowYear;
  405.     }
  406.     public function setCashflowYear(?string $cashflowYear): self
  407.     {
  408.         $this->cashflowYear $cashflowYear;
  409.         return $this;
  410.     }
  411.     public function getCashflowMonth(): ?string
  412.     {
  413.         return $this->cashflowMonth;
  414.     }
  415.     public function setCashflowMonth(?string $cashflowMonth): self
  416.     {
  417.         $this->cashflowMonth $cashflowMonth;
  418.         return $this;
  419.     }
  420.     public function getPAndl(): ?string
  421.     {
  422.         return $this->pAndl;
  423.     }
  424.     public function setPAndl(?string $pAndl): self
  425.     {
  426.         $this->pAndl $pAndl;
  427.         return $this;
  428.     }
  429.     public function getImmobilisation(): ?string
  430.     {
  431.         return $this->immobilisation;
  432.     }
  433.     public function setImmobilisation(?string $immobilisation): self
  434.     {
  435.         $this->immobilisation $immobilisation;
  436.         return $this;
  437.     }
  438.     public function getCharges(): ?string
  439.     {
  440.         return $this->charges;
  441.     }
  442.     public function setCharges(?string $charges): self
  443.     {
  444.         $this->charges $charges;
  445.         return $this;
  446.     }
  447.     public function getBusinessTitle(): ?string
  448.     {
  449.         return $this->businessTitle;
  450.     }
  451.     public function setBusinessTitle(?string $businessTitle): self
  452.     {
  453.         $this->businessTitle $businessTitle;
  454.         return $this;
  455.     }
  456.     public function getBeneficiaryFullName(): ?string
  457.     {
  458.         return $this->getBeneficiaryLastName().' '.$this->getBeneficiaryFirstName();
  459.     }
  460.     public function getFinancialFees(): ?string
  461.     {
  462.         return $this->financialFees;
  463.     }
  464.     public function setFinancialFees(?string $financialFees): self
  465.     {
  466.         $this->financialFees $financialFees;
  467.         return $this;
  468.     }
  469.     public function getIsDefault(): ?bool
  470.     {
  471.         return $this->isDefault;
  472.     }
  473.     public function setIsDefault(?bool $isDefault): self
  474.     {
  475.         $this->isDefault $isDefault;
  476.         return $this;
  477.     }
  478.     /**
  479.      * @return bool
  480.      */
  481.     public function isGeneration(): bool
  482.     {
  483.         return $this->generation;
  484.     }
  485.     /**
  486.      * @param bool $generation
  487.      */
  488.     public function setGeneration(bool $generation): void
  489.     {
  490.         $this->generation $generation;
  491.     }
  492.     public function getSubscription(): ?Subscription
  493.     {
  494.         return $this->subscription;
  495.     }
  496.     public function setSubscription(?Subscription $subscription): self
  497.     {
  498.         $this->subscription $subscription;
  499.         return $this;
  500.     }
  501.     public function resetId(): void
  502.     {
  503.         $this->id null;
  504.     }
  505.     public function getReference(): ?string
  506.     {
  507.         return $this->reference;
  508.     }
  509.     public function setReference(?string $reference): self
  510.     {
  511.         $this->reference $reference;
  512.         return $this;
  513.     }
  514.     public function getVan(): ?string
  515.     {
  516.         return $this->van;
  517.     }
  518.     public function setVan(?string $van): self
  519.     {
  520.         $this->van $van;
  521.         return $this;
  522.     }
  523. }