src/Entity/Order.php line 21

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Entity\File\File;
  4. use App\Repository\OrderRepository;
  5. use Doctrine\Common\Collections\ArrayCollection;
  6. use Doctrine\Common\Collections\Collection;
  7. use Doctrine\ORM\Mapping as ORM;
  8. use Symfony\Component\Validator\Constraints as Assert;
  9. /**
  10.  * @ORM\MappedSuperclass()
  11.  * @ORM\Entity(repositoryClass=OrderRepository::class)
  12.  * @ORM\Table(name="`order`")
  13.  * @ORM\InheritanceType("SINGLE_TABLE")
  14.  * @ORM\DiscriminatorColumn(name="type", type="string")
  15.  * @ORM\DiscriminatorMap({"base" = "Order", "eshop" = "OrderEshop"})
  16.  * @ORM\HasLifecycleCallbacks
  17.  */
  18. class Order extends AbstractEntity
  19. {
  20.     /**
  21.      * @ORM\Id
  22.      * @ORM\GeneratedValue
  23.      * @ORM\Column(type="integer")
  24.      */
  25.     private $id;
  26.     /**
  27.      * @ORM\Column(type="string", length=255)
  28.      */
  29.     private $hash;
  30.     /**
  31.      * @ORM\ManyToOne(targetEntity=User::class, inversedBy="orders")
  32.      * @ORM\JoinColumn(nullable=false)
  33.      */
  34.     private $user;
  35.     /**
  36.      * @ORM\ManyToOne(targetEntity=User::class, inversedBy="orders")
  37.      * @ORM\JoinColumn(nullable=true)
  38.      */
  39.     private $merchant;
  40.     /**
  41.      * @ORM\Column(type="string", length=255, nullable=true)
  42.      */
  43.     private $merchantCode;
  44.     /**
  45.      * @ORM\Column(type="float")
  46.      */
  47.     private $productCount;
  48.     /**
  49.      * @ORM\Column(type="float")
  50.      */
  51.     private $productPrice;
  52.     /**
  53.      * @ORM\Column(type="float")
  54.      */
  55.     private $productPriceSecondary;
  56.     /**
  57.      * @ORM\Column(type="float")
  58.      */
  59.     private $productTax;
  60.     /**
  61.      * @ORM\Column(type="string", length=128, nullable=true)
  62.      */
  63.     private $name;
  64.     /**
  65.      * @ORM\Column(type="string", length=128, nullable=true)
  66.      */
  67.     private $surname;
  68.     /**
  69.      * @ORM\Column(type="string", length=3, nullable=true)
  70.      */
  71.     private $personType;
  72.     /**
  73.      * @ORM\Column(type="string", length=32, nullable=true)
  74.      */
  75.     private $nationality;
  76.     /**
  77.      * @ORM\Column(type="string", length=4, nullable=true)
  78.      */
  79.     private $taxResidency;
  80.     /**
  81.      * @ORM\Column(type="string", length=512, nullable=true)
  82.      */
  83.     private $address;
  84.     /**
  85.      * @ORM\Column(type="string", length=255, nullable=true)
  86.      */
  87.     private $street;
  88.     /**
  89.      * @ORM\Column(type="string", length=128, nullable=true)
  90.      */
  91.     private $town;
  92.     /**
  93.      * @ORM\Column(type="string", length=6, nullable=true)
  94.      */
  95.     private $postal;
  96.     /**
  97.      * @ORM\Column(type="string", length=512, nullable=true)
  98.      */
  99.     private $address2;
  100.     /**
  101.      * @ORM\Column(type="string", length=255, nullable=true)
  102.      */
  103.     private $street2;
  104.     /**
  105.      * @ORM\Column(type="string", length=128, nullable=true)
  106.      */
  107.     private $town2;
  108.     /**
  109.      * @ORM\Column(type="string", length=6, nullable=true)
  110.      */
  111.     private $postal2;
  112.     /**
  113.      * @ORM\Column(type="string", length=32, nullable=true)
  114.      */
  115.     private $ic;
  116.     /**
  117.      * @ORM\Column(type="string", length=36, nullable=true)
  118.      */
  119.     private $dic;
  120.     /**
  121.      * @ORM\Column(type="date", nullable=true)
  122.      */
  123.     private $birthdate;
  124.     /**
  125.      * @ORM\Column(type="string", length=128, nullable=true)
  126.      */
  127.     private $phone;
  128.     /**
  129.      * @ORM\Column(type="string", length=128, nullable=true)
  130.      */
  131.     private $email;
  132.     /**
  133.      * @ORM\Column(type="string", length=255, nullable=true)
  134.      */
  135.     private $bankName;
  136.     /**
  137.      * @ORM\Column(type="string", length=255, nullable=true)
  138.      */
  139.     private $bankAccount;
  140.     /**
  141.      * @ORM\Column(type="string", length=128, nullable=true)
  142.      */
  143.     private $swift;
  144.     /**
  145.      * @ORM\Column(type="string", length=128, nullable=true)
  146.      */
  147.     private $iban;
  148.     /**
  149.      * @ORM\Column(type="string", length=255, nullable=true)
  150.      */
  151.     private $idType;
  152.     /**
  153.      * @ORM\Column(type="string", length=255, nullable=true)
  154.      */
  155.     private $idNumber;
  156.     /**
  157.      * @ORM\Column(type="string", length=255, nullable=true)
  158.      */
  159.     private $idAuthor;
  160.     /**
  161.      * @ORM\Column(type="date", nullable=true)
  162.      */
  163.     private $idValidity;
  164.     /**
  165.      * @ORM\Column(type="string", length=255, nullable=true)
  166.      */
  167.     private $businessmanRegistrationPlace;
  168.     /**
  169.      * @ORM\Column(type="string", length=255, nullable=true)
  170.      */
  171.     private $businessmanRegistrationNumber;
  172.     /**
  173.      * @ORM\Column(type="string", length=255, nullable=true)
  174.      */
  175.     private $companyRegistrationPlace;
  176.     /**
  177.      * @ORM\Column(type="string", length=255, nullable=true)
  178.      */
  179.     private $companyRegistrationNumber;
  180.     /**
  181.      * @ORM\Column(type="string", length=255, nullable=true)
  182.      */
  183.     private $companyRegistrationPartition;
  184.     /**
  185.      * @ORM\Column(type="string", length=255, nullable=true)
  186.      */
  187.     private $companyRegistrationInsertion;
  188.     /**
  189.      * @ORM\Column(type="string", length=255, nullable=true)
  190.      */
  191.     private $companyRepresentantive;
  192.     /**
  193.      * @ORM\Column(type="string", length=255, nullable=true)
  194.      */
  195.     private $signPlaceUser;
  196.     /**
  197.      * @ORM\Column(type="text", nullable=true)
  198.      */
  199.     private $message;
  200.     /**
  201.      * @ORM\Column(type="boolean")
  202.      */
  203.     private $consent1 false;
  204.     /**
  205.      * @ORM\Column(type="boolean")
  206.      */
  207.     private $consent2 false;
  208.     /**
  209.      * @ORM\Column(type="boolean")
  210.      */
  211.     private $consent3 false;
  212.     /**
  213.      * @ORM\Column(type="boolean")
  214.      */
  215.     private $consent4 false;
  216.     /**
  217.      * @ORM\Column(type="boolean")
  218.      */
  219.     private $consent5 false;
  220.     /**
  221.      * @ORM\Column(type="boolean")
  222.      */
  223.     private $consent6 false;
  224.     /**
  225.      * @ORM\ManyToOne(targetEntity=Company::class, inversedBy="orders")
  226.      * @ORM\JoinColumn(nullable=true)
  227.      */
  228.     private $company;
  229.     /**
  230.      * @ORM\ManyToOne(targetEntity=Product::class, inversedBy="orders")
  231.      * @ORM\JoinColumn(nullable=true)
  232.      */
  233.     private $product;
  234.     /**
  235.      * @ORM\Column(type="datetime", nullable=true)
  236.      */
  237.     private $signDateUser;
  238.     /**
  239.      * @ORM\Column(type="string", length=255, nullable=true)
  240.      */
  241.     private $signPlaceCompany;
  242.     /**
  243.      * @ORM\Column(type="datetime", nullable=true)
  244.      */
  245.     private $signDateCompany;
  246.     /**
  247.      * @ORM\Column(type="float", nullable=true)
  248.      */
  249.     private $productInterest;
  250.     /**
  251.      * @ORM\Column(type="float", nullable=true)
  252.      */
  253.     private $productPriceTotal;
  254.     /**
  255.      * @ORM\Column(type="string", length=255, nullable=true)
  256.      */
  257.     private $productPriceTotalInWords;
  258.     /**
  259.      * @ORM\OneToMany(targetEntity=File::class, mappedBy="orderEnt")
  260.      */
  261.     private $files;
  262.     /**
  263.      * @ORM\Column(type="datetime", nullable=true)
  264.      */
  265.     private $apiValidTill;
  266.     /**
  267.      * @ORM\Column(type="string", length=128, nullable=true)
  268.      */
  269.     private $idTypeOther;
  270.     /**
  271.      * @ORM\Column(type="boolean", nullable=true)
  272.      */
  273.     private $sameAddress false;
  274.     /**
  275.      * @ORM\Column(type="boolean")
  276.      */
  277.     private $deleted false;
  278.     /**
  279.      * @ORM\Column(type="datetime", nullable=true)
  280.      */
  281.     private $dueDate;
  282.     /**
  283.      * @ORM\Column(type="string", length=255, nullable=true)
  284.      */
  285.     private $whatGenerated;
  286.     /**
  287.      * @ORM\Column(type="string", length=6, nullable=true)
  288.      */
  289.     private $bankCode;
  290.     /**
  291.      * @ORM\Column(type="text", nullable=true)
  292.      */
  293.     private $apiIncome;
  294.     /**
  295.      * @ORM\Column(type="boolean", nullable=true, options={"default": "0"})
  296.      */
  297.     private $signed false;
  298.     /**
  299.      * @ORM\Column(type="date", nullable=true)
  300.      */
  301.     private $signed_date;
  302.     /**
  303.      * @ORM\Column(type="boolean", nullable=true, options={"default": "0"})
  304.      */
  305.     private $paid false;
  306.     /**
  307.      * @ORM\Column(type="date", nullable=true)
  308.      */
  309.     private $paid_date;
  310.     /**
  311.      * @ORM\Column(type="boolean", nullable=true, options={"default": "0"})
  312.      */
  313.     private $vpDelivery false;
  314.     /**
  315.      * @ORM\Column(type="date", nullable=true)
  316.      */
  317.     private $vpDelivery_date;
  318.     /**
  319.      * @ORM\Column(type="boolean", nullable=true, options={"default": "0"})
  320.      */
  321.     private $sent false;
  322.     /**
  323.      * @ORM\Column(type="date", nullable=true)
  324.      */
  325.     private $sent_date;
  326.     /**
  327.      * @ORM\Column(type="boolean", nullable=true, options={"default": "0"})
  328.      */
  329.     private $storno false;
  330.     /**
  331.      * @ORM\Column(type="date", nullable=true)
  332.      */
  333.     private $stornoDate;
  334.     /**
  335.      * @ORM\Column(type="string", length=64, nullable=true)
  336.      */
  337.     private $raynetId;
  338.     /**
  339.      * @ORM\Column(type="boolean", nullable=true, options={"default": "0"})
  340.      */
  341.     private $reinvest false;
  342.     /**
  343.      * @ORM\Column(type="boolean", nullable=true, options={"default": "0"})
  344.      */
  345.     private $paid2 false;
  346.     /**
  347.      * @ORM\Column(type="date", nullable=true)
  348.      */
  349.     private $paidDate2;
  350.     /**
  351.      * @ORM\Column(type="boolean", nullable=true, options={"default": "0"})
  352.      */
  353.     private $paid3 false;
  354.     /**
  355.      * @ORM\Column(type="date", nullable=true)
  356.      */
  357.     private $paidDate3;
  358.     /**
  359.      * @ORM\Column(type="boolean", nullable=true, options={"default": "0"})
  360.      */
  361.     private $transfer false;
  362.     /**
  363.      * @ORM\Column(type="date", nullable=true)
  364.      */
  365.     private $transferDate;
  366.     /**
  367.      * @ORM\Column(type="float", nullable=true)
  368.      */
  369.     private $productPriceSecondaryTotal;
  370.     /**
  371.      * @ORM\Column(type="string", length=255, nullable=true)
  372.      */
  373.     private $productPriceSecondaryTotalInWords;
  374.     /**
  375.      * @ORM\Column(type="boolean", nullable=true)
  376.      */
  377.     private $inProgress false;
  378.     /**
  379.      * @ORM\Column(type="date", nullable=true)
  380.      */
  381.     private $inProgressDate;
  382.     /**
  383.      * @ORM\Column(type="string", length=255, nullable=true)
  384.      */
  385.     private $sequenceNumber;
  386.     /**
  387.      * @ORM\Column(type="datetime", nullable=true)
  388.      */
  389.     private $vpProtocolSent;
  390.     /**
  391.      * @ORM\Column(type="boolean", nullable=true)
  392.      */
  393.     private $vpProtocolBlockedForSend;
  394.     /**
  395.      * @ORM\OneToMany(targetEntity=InterestPaidoff::class, mappedBy="orderEntity")
  396.      */
  397.     private $interestPaidoffs;
  398.     /**
  399.      * @ORM\Column(type="string", length=15, nullable=true)
  400.      */
  401.     private $birthnumber;
  402.     /**
  403.      * @ORM\Column(type="string", length=255, nullable=true)
  404.      */
  405.     private $originOfFunds;
  406.     /**
  407.      * @ORM\Column(type="string", length=255, nullable=true)
  408.      */
  409.     private $originOfFundsCustom;
  410.     /**
  411.      * @ORM\Column(type="boolean", nullable=true)
  412.      */
  413.     private $politicallyExposedPerson;
  414.     /**
  415.      * @ORM\Column(type="json", nullable=true)
  416.      */
  417.     private $ownAgreements = [];
  418.     /**
  419.      * Order constructor.
  420.      */
  421.     public function __construct()
  422.     {
  423.         $this->files = new ArrayCollection();
  424.         $this->interestPaidoffs = new ArrayCollection();
  425.     }
  426.     /**
  427.      * Add hash to order if is not set
  428.      *
  429.      * @ORM\PrePersist
  430.      * @ORM\PreUpdate
  431.      */
  432.     public function onPrePersist()
  433.     {
  434.         parent::onPrePersist();
  435.         if (is_null($this->hash)) {
  436.             $this->setHash(sha1(md5(time() . time())));
  437.         }
  438.     }
  439.     /**
  440.      * @return string (ID:{$this->getId()}) {$this->getName()}
  441.      */
  442.     public function __toString(): string
  443.     {
  444.         return "(ID:{$this->getId()}{$this->getName()}";
  445.     }
  446.     /**
  447.      * @return int|null
  448.      */
  449.     public function getId(): ?int
  450.     {
  451.         return $this->id;
  452.     }
  453.     /**
  454.      * @return string|null
  455.      */
  456.     public function getHash(): ?string
  457.     {
  458.         return $this->hash;
  459.     }
  460.     /**
  461.      * @param string $hash
  462.      * @return $this
  463.      */
  464.     public function setHash(string $hash): self
  465.     {
  466.         $this->hash $hash;
  467.         return $this;
  468.     }
  469.     /**
  470.      * @return User|null
  471.      */
  472.     public function getUser(): ?User
  473.     {
  474.         return $this->user;
  475.     }
  476.     /**
  477.      * @param User|null $user
  478.      * @return $this
  479.      */
  480.     public function setUser(?User $user): self
  481.     {
  482.         $this->user $user;
  483.         return $this;
  484.     }
  485.     /**
  486.      * @return User|null
  487.      */
  488.     public function getMerchant(): ?User
  489.     {
  490.         return $this->merchant;
  491.     }
  492.     /**
  493.      * @param User|null $merchant
  494.      * @return $this
  495.      */
  496.     public function setMerchant(?User $merchant): self
  497.     {
  498.         $this->merchant $merchant;
  499.         return $this;
  500.     }
  501.     /**
  502.      * @return string|null
  503.      */
  504.     public function getMerchantCode(): ?string
  505.     {
  506.         return $this->merchantCode;
  507.     }
  508.     /**
  509.      * @param string|null $merchantCode
  510.      * @return $this
  511.      */
  512.     public function setMerchantCode(?string $merchantCode): self
  513.     {
  514.         $this->merchantCode $merchantCode;
  515.         return $this;
  516.     }
  517.     /**
  518.      * @return float|null
  519.      */
  520.     public function getProductCount(): ?float
  521.     {
  522.         return $this->productCount;
  523.     }
  524.     /**
  525.      * @param float $productCount
  526.      * @return $this
  527.      */
  528.     public function setProductCount(float $productCount): self
  529.     {
  530.         $productCount str_replace(',''.'$productCount);
  531.         $this->productCount $productCount;
  532.         return $this;
  533.     }
  534.     /**
  535.      * @return float|null
  536.      */
  537.     public function getProductPrice(): ?float
  538.     {
  539.         return $this->productPrice;
  540.     }
  541.     /**
  542.      * @param float $productPrice
  543.      * @return $this
  544.      */
  545.     public function setProductPrice(float $productPrice): self
  546.     {
  547.         $productPrice str_replace(',''.'$productPrice);
  548.         $this->productPrice $productPrice;
  549.         return $this;
  550.     }
  551.     /**
  552.      * @return float|null
  553.      */
  554.     public function getProductPriceSecondary(): ?float
  555.     {
  556.         return $this->productPriceSecondary;
  557.     }
  558.     /**
  559.      * @param float $productPrice
  560.      * @return $this
  561.      */
  562.     public function setProductPriceSecondary(?float $productPrice): self
  563.     {
  564.         $productPrice str_replace(',''.', (float)$productPrice);
  565.         $this->productPriceSecondary $productPrice;
  566.         return $this;
  567.     }
  568.     /**
  569.      * @return float|null
  570.      */
  571.     public function getProductTax(): ?float
  572.     {
  573.         return $this->productTax;
  574.     }
  575.     /**
  576.      * @param float $productTax
  577.      * @return $this
  578.      */
  579.     public function setProductTax(float $productTax): self
  580.     {
  581.         $productTax str_replace(',''.'$productTax);
  582.         $this->productTax $productTax;
  583.         return $this;
  584.     }
  585.     /**
  586.      * @return mixed
  587.      */
  588.     public function getName()
  589.     {
  590.         return $this->name;
  591.     }
  592.     /**
  593.      * @param mixed $name
  594.      * @return Order
  595.      */
  596.     public function setName($name): self
  597.     {
  598.         $this->name $name;
  599.         return $this;
  600.     }
  601.     /**
  602.      * @return mixed
  603.      */
  604.     public function getSurname()
  605.     {
  606.         return $this->surname;
  607.     }
  608.     /**
  609.      * @param mixed $surname
  610.      * @return Order
  611.      */
  612.     public function setSurname($surname): self
  613.     {
  614.         $this->surname $surname;
  615.         return $this;
  616.     }
  617.     /**
  618.      * @return mixed
  619.      */
  620.     public function getPersonType()
  621.     {
  622.         return $this->personType;
  623.     }
  624.     /**
  625.      * @param mixed $personType
  626.      * @return Order
  627.      */
  628.     public function setPersonType($personType): self
  629.     {
  630.         $this->personType $personType;
  631.         return $this;
  632.     }
  633.     /**
  634.      * @return mixed
  635.      */
  636.     public function getNationality()
  637.     {
  638.         return $this->nationality;
  639.     }
  640.     /**
  641.      * @param mixed $nationality
  642.      */
  643.     public function setNationality($nationality): void
  644.     {
  645.         $this->nationality $nationality;
  646.     }
  647.     /**
  648.      * @return mixed
  649.      */
  650.     public function getTaxResidency()
  651.     {
  652.         return $this->taxResidency;
  653.     }
  654.     /**
  655.      * @param mixed $taxResidency
  656.      */
  657.     public function setTaxResidency($taxResidency): void
  658.     {
  659.         $this->taxResidency $taxResidency;
  660.     }
  661.     /**
  662.      * @return mixed
  663.      */
  664.     public function getAddress()
  665.     {
  666.         if (is_null($this->address)) {
  667.             return
  668.                 trim($this->getStreet() . ", " .
  669.                     $this->getTown() . ", " .
  670.                     $this->getPostal(), ", ");
  671.         }
  672.         return $this->address;
  673.     }
  674.     /**
  675.      * @param mixed $address
  676.      */
  677.     public function setAddress($address): void
  678.     {
  679.         $this->address $address;
  680.     }
  681.     /**
  682.      * @return mixed
  683.      */
  684.     public function getStreet()
  685.     {
  686.         return $this->street;
  687.     }
  688.     /**
  689.      * @param mixed $street
  690.      */
  691.     public function setStreet($street): self
  692.     {
  693.         $this->street $street;
  694.         return $this;
  695.     }
  696.     /**
  697.      * @return mixed
  698.      */
  699.     public function getTown()
  700.     {
  701.         return $this->town;
  702.     }
  703.     /**
  704.      * @param mixed $town
  705.      */
  706.     public function setTown($town): self
  707.     {
  708.         $this->town $town;
  709.         return $this;
  710.     }
  711.     /**
  712.      * @return mixed
  713.      */
  714.     public function getPostal()
  715.     {
  716.         return $this->postal;
  717.     }
  718.     /**
  719.      * @param mixed $postal
  720.      */
  721.     public function setPostal($postal): self
  722.     {
  723.         $this->postal $postal;
  724.         return $this;
  725.     }
  726.     /**
  727.      * @return mixed
  728.      */
  729.     public function getAddress2()
  730.     {
  731.         if (is_null($this->address2)) {
  732.             return
  733.                 trim($this->getStreet2() . ", " .
  734.                     $this->getTown2() . ", " .
  735.                     $this->getPostal2(), ", ");
  736.         }
  737.         return $this->address2;
  738.     }
  739.     /**
  740.      * @param mixed $address2
  741.      */
  742.     public function setAddress2($address2): self
  743.     {
  744.         $this->address2 $address2;
  745.         return $this;
  746.     }
  747.     /**
  748.      * @return mixed
  749.      */
  750.     public function getStreet2()
  751.     {
  752.         return $this->street2;
  753.     }
  754.     /**
  755.      * @param mixed $street2
  756.      */
  757.     public function setStreet2($street2): self
  758.     {
  759.         $this->street2 $street2;
  760.         return $this;
  761.     }
  762.     /**
  763.      * @return mixed
  764.      */
  765.     public function getTown2()
  766.     {
  767.         return $this->town2;
  768.     }
  769.     /**
  770.      * @param mixed $town2
  771.      */
  772.     public function setTown2($town2): self
  773.     {
  774.         $this->town2 $town2;
  775.         return $this;
  776.     }
  777.     /**
  778.      * @return mixed
  779.      */
  780.     public function getPostal2()
  781.     {
  782.         return $this->postal2;
  783.     }
  784.     /**
  785.      * @param mixed $postal2
  786.      */
  787.     public function setPostal2($postal2): self
  788.     {
  789.         $this->postal2 $postal2;
  790.         return $this;
  791.     }
  792.     /**
  793.      * @return mixed
  794.      */
  795.     public function getIc()
  796.     {
  797.         return $this->ic;
  798.     }
  799.     /**
  800.      * @param mixed $ic
  801.      */
  802.     public function setIc($ic): self
  803.     {
  804.         $this->ic $ic;
  805.         return $this;
  806.     }
  807.     /**
  808.      * @return mixed
  809.      */
  810.     public function getDic()
  811.     {
  812.         return $this->dic;
  813.     }
  814.     /**
  815.      * @param mixed $dic
  816.      */
  817.     public function setDic($dic): void
  818.     {
  819.         $this->dic $dic;
  820.     }
  821.     /**
  822.      * @return mixed
  823.      */
  824.     public function getBirthdate()
  825.     {
  826.         if($this->getProduct() != null && $this->getProduct()->isUseAdamna() && $this->getBirthnumber() != null){
  827.             $birthnumber $this->getBirthnumber();
  828.             $exploded explode("/"$birthnumber);
  829.             $birthdatePart0 str_split($exploded[0], 2);
  830.             return \DateTime::createFromFormat(
  831.                 'y-m-d',
  832.                 $birthdatePart0[0] . '-' $birthdatePart0[1] . '-' $birthdatePart0[2]
  833.             );
  834.         }
  835.         return $this->birthdate;
  836.     }
  837.     /**
  838.      * @param mixed $birthdate
  839.      */
  840.     public function setBirthdate($birthdate): void
  841.     {
  842.         $this->birthdate $birthdate;
  843.     }
  844.     /**
  845.      * @return mixed
  846.      */
  847.     public function getPhone()
  848.     {
  849.         return $this->phone;
  850.     }
  851.     /**
  852.      * @param mixed $phone
  853.      * @return Order
  854.      */
  855.     public function setPhone($phone): self
  856.     {
  857.         $this->phone $phone;
  858.         return $this;
  859.     }
  860.     /**
  861.      * @return mixed
  862.      */
  863.     public function getEmail()
  864.     {
  865.         return $this->email;
  866.     }
  867.     /**
  868.      * @param mixed $email
  869.      * @return Order
  870.      */
  871.     public function setEmail($email): self
  872.     {
  873.         $this->email $email;
  874.         return $this;
  875.     }
  876.     /**
  877.      * @return mixed
  878.      */
  879.     public function getBankName()
  880.     {
  881.         return $this->bankName;
  882.     }
  883.     /**
  884.      * @param mixed $bankName
  885.      */
  886.     public function setBankName($bankName): void
  887.     {
  888.         $this->bankName $bankName;
  889.     }
  890.     /**
  891.      * @return mixed
  892.      */
  893.     public function getBankAccount()
  894.     {
  895.         return $this->bankAccount;
  896.     }
  897.     /**
  898.      * @param mixed $bankAccount
  899.      */
  900.     public function setBankAccount($bankAccount): void
  901.     {
  902.         $this->bankAccount $bankAccount;
  903.     }
  904.     /**
  905.      * @return mixed
  906.      */
  907.     public function getSwift()
  908.     {
  909.         return $this->swift;
  910.     }
  911.     /**
  912.      * @param mixed $swift
  913.      */
  914.     public function setSwift($swift): void
  915.     {
  916.         $this->swift $swift;
  917.     }
  918.     /**
  919.      * @return mixed
  920.      */
  921.     public function getIban()
  922.     {
  923.         return $this->iban;
  924.     }
  925.     /**
  926.      * @param mixed $iban
  927.      */
  928.     public function setIban($iban): void
  929.     {
  930.         $this->iban $iban;
  931.     }
  932.     /**
  933.      * @return mixed
  934.      */
  935.     public function getIdType()
  936.     {
  937.         return $this->idType;
  938.     }
  939.     /**
  940.      * @param mixed $idType
  941.      */
  942.     public function setIdType($idType): void
  943.     {
  944.         $this->idType $idType;
  945.     }
  946.     /**
  947.      * @return mixed
  948.      */
  949.     public function getIdNumber()
  950.     {
  951.         return $this->idNumber;
  952.     }
  953.     /**
  954.      * @param mixed $idNumber
  955.      */
  956.     public function setIdNumber($idNumber): void
  957.     {
  958.         $this->idNumber $idNumber;
  959.     }
  960.     /**
  961.      * @return mixed
  962.      */
  963.     public function getIdAuthor()
  964.     {
  965.         return $this->idAuthor;
  966.     }
  967.     /**
  968.      * @param mixed $idAuthor
  969.      */
  970.     public function setIdAuthor($idAuthor): void
  971.     {
  972.         $this->idAuthor $idAuthor;
  973.     }
  974.     /**
  975.      * @return mixed
  976.      */
  977.     public function getIdValidity()
  978.     {
  979.         return $this->idValidity;
  980.     }
  981.     /**
  982.      * @param mixed $idValidity
  983.      */
  984.     public function setIdValidity($idValidity): void
  985.     {
  986.         $this->idValidity $idValidity;
  987.     }
  988.     /**
  989.      * @return mixed
  990.      */
  991.     public function getBusinessmanRegistrationPlace()
  992.     {
  993.         return $this->businessmanRegistrationPlace;
  994.     }
  995.     /**
  996.      * @param mixed $businessmanRegistrationPlace
  997.      */
  998.     public function setBusinessmanRegistrationPlace($businessmanRegistrationPlace): void
  999.     {
  1000.         $this->businessmanRegistrationPlace $businessmanRegistrationPlace;
  1001.     }
  1002.     /**
  1003.      * @return mixed
  1004.      */
  1005.     public function getBusinessmanRegistrationNumber()
  1006.     {
  1007.         return $this->businessmanRegistrationNumber;
  1008.     }
  1009.     /**
  1010.      * @param mixed $businessmanRegistrationNumber
  1011.      */
  1012.     public function setBusinessmanRegistrationNumber($businessmanRegistrationNumber): void
  1013.     {
  1014.         $this->businessmanRegistrationNumber $businessmanRegistrationNumber;
  1015.     }
  1016.     /**
  1017.      * @return mixed
  1018.      */
  1019.     public function getCompanyRegistrationPlace()
  1020.     {
  1021.         return $this->companyRegistrationPlace;
  1022.     }
  1023.     /**
  1024.      * @param mixed $companyRegistrationPlace
  1025.      */
  1026.     public function setCompanyRegistrationPlace($companyRegistrationPlace): void
  1027.     {
  1028.         $this->companyRegistrationPlace $companyRegistrationPlace;
  1029.     }
  1030.     /**
  1031.      * @return mixed
  1032.      */
  1033.     public function getCompanyRegistrationNumber()
  1034.     {
  1035.         return $this->companyRegistrationNumber;
  1036.     }
  1037.     /**
  1038.      * @param mixed $companyRegistrationNumber
  1039.      */
  1040.     public function setCompanyRegistrationNumber($companyRegistrationNumber): void
  1041.     {
  1042.         $this->companyRegistrationNumber $companyRegistrationNumber;
  1043.     }
  1044.     /**
  1045.      * @return mixed
  1046.      */
  1047.     public function getCompanyRegistrationPartition()
  1048.     {
  1049.         return $this->companyRegistrationPartition;
  1050.     }
  1051.     /**
  1052.      * @param mixed $companyRegistrationPartition
  1053.      */
  1054.     public function setCompanyRegistrationPartition($companyRegistrationPartition): void
  1055.     {
  1056.         $this->companyRegistrationPartition $companyRegistrationPartition;
  1057.     }
  1058.     /**
  1059.      * @return mixed
  1060.      */
  1061.     public function getCompanyRegistrationInsertion()
  1062.     {
  1063.         return $this->companyRegistrationInsertion;
  1064.     }
  1065.     /**
  1066.      * @param mixed $companyRegistrationInsertion
  1067.      */
  1068.     public function setCompanyRegistrationInsertion($companyRegistrationInsertion): void
  1069.     {
  1070.         $this->companyRegistrationInsertion $companyRegistrationInsertion;
  1071.     }
  1072.     /**
  1073.      * @return mixed
  1074.      */
  1075.     public function getCompanyRepresentantive()
  1076.     {
  1077.         return $this->companyRepresentantive;
  1078.     }
  1079.     /**
  1080.      * @param mixed $companyRepresentantive
  1081.      */
  1082.     public function setCompanyRepresentantive($companyRepresentantive): void
  1083.     {
  1084.         $this->companyRepresentantive $companyRepresentantive;
  1085.     }
  1086.     /**
  1087.      * @return string|null
  1088.      */
  1089.     public function getSignPlaceUser(): ?string
  1090.     {
  1091.         return $this->signPlaceUser;
  1092.     }
  1093.     /**
  1094.      * @param string $signPlaceUser
  1095.      * @return $this
  1096.      */
  1097.     public function setSignPlaceUser(string $signPlaceUser): self
  1098.     {
  1099.         $this->signPlaceUser $signPlaceUser;
  1100.         return $this;
  1101.     }
  1102.     /**
  1103.      * @return string|null
  1104.      */
  1105.     public function getMessage(): ?string
  1106.     {
  1107.         return $this->message;
  1108.     }
  1109.     /**
  1110.      * @param string|null $message
  1111.      * @return $this
  1112.      */
  1113.     public function setMessage(?string $message): self
  1114.     {
  1115.         $this->message $message;
  1116.         return $this;
  1117.     }
  1118.     /**
  1119.      * @return bool|null
  1120.      */
  1121.     public function isConsent1(): ?bool
  1122.     {
  1123.         return (bool)$this->consent1;
  1124.     }
  1125.     /**
  1126.      * @param bool $consent1
  1127.      * @return $this
  1128.      */
  1129.     public function setConsent1(bool $consent1): self
  1130.     {
  1131.         $this->consent1 $consent1;
  1132.         return $this;
  1133.     }
  1134.     /**
  1135.      * @return mixed
  1136.      */
  1137.     public function getConsent2()
  1138.     {
  1139.         return $this->consent2;
  1140.     }
  1141.     /**
  1142.      * @param mixed $consent2
  1143.      * @return Order
  1144.      */
  1145.     public function setConsent2(bool $consent2): self
  1146.     {
  1147.         $this->consent2 $consent2;
  1148.         return $this;
  1149.     }
  1150.     /**
  1151.      * @return mixed
  1152.      */
  1153.     public function getConsent3()
  1154.     {
  1155.         return $this->consent3;
  1156.     }
  1157.     /**
  1158.      * @param mixed $consent3
  1159.      * @return Order
  1160.      */
  1161.     public function setConsent3($consent3): self
  1162.     {
  1163.         $this->consent3 $consent3;
  1164.         return $this;
  1165.     }
  1166.     /**
  1167.      * @return mixed
  1168.      */
  1169.     public function getConsent4()
  1170.     {
  1171.         return $this->consent4;
  1172.     }
  1173.     /**
  1174.      * @param mixed $consent4
  1175.      * @return Order
  1176.      */
  1177.     public function setConsent4($consent4): self
  1178.     {
  1179.         $this->consent4 $consent4;
  1180.         return $this;
  1181.     }
  1182.     /**
  1183.      * @return mixed
  1184.      */
  1185.     public function getConsent5()
  1186.     {
  1187.         return $this->consent5;
  1188.     }
  1189.     /**
  1190.      * @param mixed $consent5
  1191.      * @return Order
  1192.      */
  1193.     public function setConsent5($consent5): self
  1194.     {
  1195.         $this->consent5 $consent5;
  1196.         return $this;
  1197.     }
  1198.     /**
  1199.      * @return mixed
  1200.      */
  1201.     public function getConsent6()
  1202.     {
  1203.         return $this->consent6;
  1204.     }
  1205.     /**
  1206.      * @param mixed $consent6
  1207.      * @return Order
  1208.      */
  1209.     public function setConsent6($consent6): self
  1210.     {
  1211.         $this->consent6 $consent6;
  1212.         return $this;
  1213.     }
  1214.     /**
  1215.      * @return Company|null
  1216.      */
  1217.     public function getCompany(): ?Company
  1218.     {
  1219.         return $this->company;
  1220.     }
  1221.     /**
  1222.      * @param Company|null $company
  1223.      * @return $this
  1224.      */
  1225.     public function setCompany(?Company $company): self
  1226.     {
  1227.         $this->company $company;
  1228.         return $this;
  1229.     }
  1230.     /**
  1231.      * @return Product|null
  1232.      */
  1233.     public function getProduct(): ?Product
  1234.     {
  1235.         return $this->product;
  1236.     }
  1237.     /**
  1238.      * @param Product|null $product
  1239.      * @return $this
  1240.      */
  1241.     public function setProduct(?Product $product): self
  1242.     {
  1243.         $this->product $product;
  1244.         return $this;
  1245.     }
  1246.     public function getSignDateUser(): ?\DateTimeInterface
  1247.     {
  1248.         return $this->signDateUser;
  1249.     }
  1250.     public function setSignDateUser(?\DateTimeInterface $signDateUser): self
  1251.     {
  1252.         $this->signDateUser $signDateUser;
  1253.         return $this;
  1254.     }
  1255.     public function getSignPlaceCompany(): ?string
  1256.     {
  1257.         return $this->signPlaceCompany;
  1258.     }
  1259.     public function setSignPlaceCompany(?string $signPlaceCompany): self
  1260.     {
  1261.         $this->signPlaceCompany $signPlaceCompany;
  1262.         return $this;
  1263.     }
  1264.     public function getSignDateCompany(): ?\DateTimeInterface
  1265.     {
  1266.         return $this->signDateCompany;
  1267.     }
  1268.     public function setSignDateCompany(?\DateTimeInterface $signDateCompany): self
  1269.     {
  1270.         $this->signDateCompany $signDateCompany;
  1271.         return $this;
  1272.     }
  1273.     public function getProductInterest(): ?float
  1274.     {
  1275.         return $this->productInterest;
  1276.     }
  1277.     public function setProductInterest($productInterest): self
  1278.     {
  1279.         $productInterest str_replace(',''.'$productInterest);
  1280.         $this->productInterest = (float)$productInterest;
  1281.         return $this;
  1282.     }
  1283.     public function getProductPriceTotal(): ?float
  1284.     {
  1285.         return $this->productPriceTotal;
  1286.     }
  1287.     public function setProductPriceTotal(?float $productPriceTotal): self
  1288.     {
  1289.         $productPriceTotal str_replace(',''.'$productPriceTotal);
  1290.         $this->productPriceTotal $productPriceTotal;
  1291.         return $this;
  1292.     }
  1293.     public function getProductPriceTotalInWords(): ?string
  1294.     {
  1295.         return $this->productPriceTotalInWords;
  1296.     }
  1297.     public function setProductPriceTotalInWords(?string $productPriceTotalInWords): self
  1298.     {
  1299.         $this->productPriceTotalInWords $productPriceTotalInWords;
  1300.         return $this;
  1301.     }
  1302.     /**
  1303.      * @return Collection<int, File>
  1304.      */
  1305.     public function getFiles(): Collection
  1306.     {
  1307.         return $this->files;
  1308.     }
  1309.     public function addFile(File $file): self
  1310.     {
  1311.         if (!$this->files->contains($file)) {
  1312.             $this->files[] = $file;
  1313.             $file->setOrderEnt($this);
  1314.         }
  1315.         return $this;
  1316.     }
  1317.     public function removeFile(File $file): self
  1318.     {
  1319.         if ($this->files->removeElement($file)) {
  1320.             // set the owning side to null (unless already changed)
  1321.             if ($file->getOrderEnt() === $this) {
  1322.                 $file->setOrderEnt(null);
  1323.             }
  1324.         }
  1325.         return $this;
  1326.     }
  1327.     public function getApiValidTill(): ?\DateTimeInterface
  1328.     {
  1329.         return $this->apiValidTill;
  1330.     }
  1331.     public function setApiValidTill(?\DateTimeInterface $apiValidTill): self
  1332.     {
  1333.         $this->apiValidTill $apiValidTill;
  1334.         return $this;
  1335.     }
  1336.     public function getIdTypeOther(): ?string
  1337.     {
  1338.         return $this->idTypeOther;
  1339.     }
  1340.     public function setIdTypeOther(?string $idTypeOther): self
  1341.     {
  1342.         $this->idTypeOther $idTypeOther;
  1343.         return $this;
  1344.     }
  1345.     public function isSameAddress(): ?bool
  1346.     {
  1347.         return (bool)$this->sameAddress;
  1348.     }
  1349.     public function setSameAddress(?bool $sameAddress): self
  1350.     {
  1351.         $this->sameAddress $sameAddress;
  1352.         return $this;
  1353.     }
  1354.     public function isDeleted(): ?bool
  1355.     {
  1356.         return (bool)$this->deleted;
  1357.     }
  1358.     public function setDeleted(bool $deleted): self
  1359.     {
  1360.         $this->deleted $deleted;
  1361.         return $this;
  1362.     }
  1363.     public function getDueDate(): ?\DateTimeInterface
  1364.     {
  1365.         return $this->dueDate;
  1366.     }
  1367.     public function setDueDate(?\DateTimeInterface $dueDate): self
  1368.     {
  1369.         $this->dueDate $dueDate;
  1370.         return $this;
  1371.     }
  1372.     public function getWhatGenerated(): ?string
  1373.     {
  1374.         return $this->whatGenerated;
  1375.     }
  1376.     public function setWhatGenerated(?string $whatGenerated): self
  1377.     {
  1378.         $this->whatGenerated $whatGenerated;
  1379.         return $this;
  1380.     }
  1381.     public function getBankCode(): ?string
  1382.     {
  1383.         return $this->bankCode;
  1384.     }
  1385.     public function setBankCode(?string $bankCode): self
  1386.     {
  1387.         $this->bankCode $bankCode;
  1388.         return $this;
  1389.     }
  1390.     public function getApiIncome(): ?string
  1391.     {
  1392.         return $this->apiIncome;
  1393.     }
  1394.     public function setApiIncome(?string $apiIncome): self
  1395.     {
  1396.         $this->apiIncome $apiIncome;
  1397.         return $this;
  1398.     }
  1399.     public function isSigned(): ?bool
  1400.     {
  1401.         return (boolean)$this->signed;
  1402.     }
  1403.     public function setSigned(?bool $signed): self
  1404.     {
  1405.         $this->signed filter_var($signedFILTER_VALIDATE_BOOLEAN);
  1406.         return $this;
  1407.     }
  1408.     public function getSignedDate(): ?\DateTimeInterface
  1409.     {
  1410.         return $this->signed_date;
  1411.     }
  1412.     public function setSignedDate(?\DateTimeInterface $signed_date): self
  1413.     {
  1414.         $this->signed_date $signed_date;
  1415.         return $this;
  1416.     }
  1417.     public function isPaid(): ?bool
  1418.     {
  1419.         return (boolean)$this->paid;
  1420.     }
  1421.     public function setPaid(?bool $paid): self
  1422.     {
  1423.         $this->paid filter_var($paidFILTER_VALIDATE_BOOLEAN);
  1424.         return $this;
  1425.     }
  1426.     public function getPaidDate(): ?\DateTimeInterface
  1427.     {
  1428.         return $this->paid_date;
  1429.     }
  1430.     public function setPaidDate(?\DateTimeInterface $paid_date): self
  1431.     {
  1432.         $this->paid_date $paid_date;
  1433.         return $this;
  1434.     }
  1435.     public function isVpDelivery(): ?bool
  1436.     {
  1437.         return (boolean)$this->vpDelivery;
  1438.     }
  1439.     public function setVpDelivery(?bool $delivery): self
  1440.     {
  1441.        $this->vpDelivery filter_var($deliveryFILTER_VALIDATE_BOOLEAN);
  1442.         return $this;
  1443.     }
  1444.     public function getVpDeliveryDate(): ?\DateTimeInterface
  1445.     {
  1446.         return $this->vpDelivery_date;
  1447.     }
  1448.     public function setVpDeliveryDate(?\DateTimeInterface $vpDelivery_date): self
  1449.     {
  1450.         $this->vpDelivery_date $vpDelivery_date;
  1451.         return $this;
  1452.     }
  1453.     public function isSent(): ?bool
  1454.     {
  1455.         return (boolean)$this->sent;
  1456.     }
  1457.     public function setSent(?bool $sent): self
  1458.     {
  1459.         $this->sent filter_var($sentFILTER_VALIDATE_BOOLEAN);
  1460.         return $this;
  1461.     }
  1462.     public function getSentDate(): ?\DateTimeInterface
  1463.     {
  1464.         return $this->sent_date;
  1465.     }
  1466.     public function setSentDate(?\DateTimeInterface $sent_date): self
  1467.     {
  1468.         $this->sent_date $sent_date;
  1469.         return $this;
  1470.     }
  1471.     public function isStorno(): ?bool
  1472.     {
  1473.         return (boolean)$this->storno;
  1474.     }
  1475.     public function setStorno(?bool $storno): self
  1476.     {
  1477.         $this->storno = (bool)$storno;
  1478.         return $this;
  1479.     }
  1480.     public function getStornoDate(): ?\DateTimeInterface
  1481.     {
  1482.         return $this->stornoDate;
  1483.     }
  1484.     public function setStornoDate(?\DateTimeInterface $stornoDate): self
  1485.     {
  1486.         $this->stornoDate $stornoDate;
  1487.         return $this;
  1488.     }
  1489.     public function getRaynetId(): ?string
  1490.     {
  1491.         return $this->raynetId;
  1492.     }
  1493.     public function setRaynetId(?string $raynetId): self
  1494.     {
  1495.         $this->raynetId $raynetId;
  1496.         return $this;
  1497.     }
  1498.     public function isReinvest(): ?bool
  1499.     {
  1500.         return (bool)$this->reinvest;
  1501.     }
  1502.     public function setReinvest(?bool $reinvest): self
  1503.     {
  1504.         $this->reinvest $reinvest;
  1505.         return $this;
  1506.     }
  1507.     public function isPaid2(): ?bool
  1508.     {
  1509.         return (bool)$this->paid2;
  1510.     }
  1511.     public function setPaid2(?bool $paid2): self
  1512.     {
  1513.         $this->paid2 $paid2;
  1514.         return $this;
  1515.     }
  1516.     public function getPaidDate2(): ?\DateTimeInterface
  1517.     {
  1518.         return $this->paidDate2;
  1519.     }
  1520.     public function setPaidDate2(?\DateTimeInterface $paidDate2): self
  1521.     {
  1522.         $this->paidDate2 $paidDate2;
  1523.         return $this;
  1524.     }
  1525.     public function isPaid3(): ?bool
  1526.     {
  1527.         return (bool)$this->paid3;
  1528.     }
  1529.     public function setPaid3(?bool $paid3): self
  1530.     {
  1531.         $this->paid3 $paid3;
  1532.         return $this;
  1533.     }
  1534.     public function getPaidDate3(): ?\DateTimeInterface
  1535.     {
  1536.         return $this->paidDate3;
  1537.     }
  1538.     public function setPaidDate3(?\DateTimeInterface $paidDate3): self
  1539.     {
  1540.         $this->paidDate3 $paidDate3;
  1541.         return $this;
  1542.     }
  1543.     public function isTransfer(): ?bool
  1544.     {
  1545.         return (bool)$this->transfer;
  1546.     }
  1547.     public function setTransfer(?bool $transfer): self
  1548.     {
  1549.         $this->transfer $transfer;
  1550.         return $this;
  1551.     }
  1552.     public function getTransferDate(): ?\DateTimeInterface
  1553.     {
  1554.         return $this->transferDate;
  1555.     }
  1556.     public function setTransferDate(?\DateTimeInterface $transferDate): self
  1557.     {
  1558.         $this->transferDate $transferDate;
  1559.         return $this;
  1560.     }
  1561.     public function getProductPriceSecondaryTotal(): ?float
  1562.     {
  1563.         return $this->productPriceSecondaryTotal;
  1564.     }
  1565.     public function setProductPriceSecondaryTotal(?float $productPriceSecondaryTotal): self
  1566.     {
  1567.         $this->productPriceSecondaryTotal $productPriceSecondaryTotal;
  1568.         return $this;
  1569.     }
  1570.     public function getProductPriceSecondaryTotalInWords(): ?string
  1571.     {
  1572.         return $this->productPriceSecondaryTotalInWords;
  1573.     }
  1574.     public function setProductPriceSecondaryTotalInWords(?string $productPriceSecondaryTotalInWords): self
  1575.     {
  1576.         $this->productPriceSecondaryTotalInWords $productPriceSecondaryTotalInWords;
  1577.         return $this;
  1578.     }
  1579.     public function isInProgress(): ?bool
  1580.     {
  1581.         return (bool)$this->inProgress;
  1582.     }
  1583.     public function setInProgress(?bool $inProgress): self
  1584.     {
  1585.         $this->inProgress $inProgress;
  1586.         return $this;
  1587.     }
  1588.     public function getInProgressDate(): ?\DateTimeInterface
  1589.     {
  1590.         return $this->inProgressDate;
  1591.     }
  1592.     public function setInProgressDate(?\DateTimeInterface $inProgressDate): self
  1593.     {
  1594.         $this->inProgressDate $inProgressDate;
  1595.         return $this;
  1596.     }
  1597.     public function getSequenceNumber(): ?string
  1598.     {
  1599.         return $this->sequenceNumber;
  1600.     }
  1601.     public function setSequenceNumber(?string $sequenceNumber): self
  1602.     {
  1603.         $this->sequenceNumber $sequenceNumber;
  1604.         return $this;
  1605.     }
  1606.     public function getVpProtocolSent(): ?\DateTimeInterface
  1607.     {
  1608.         return $this->vpProtocolSent;
  1609.     }
  1610.     public function setVpProtocolSent(?\DateTimeInterface $vpProtocolSent): self
  1611.     {
  1612.         $this->vpProtocolSent $vpProtocolSent;
  1613.         return $this;
  1614.     }
  1615.     public function isVpProtocolBlockedForSend(): ?bool
  1616.     {
  1617.         return $this->vpProtocolBlockedForSend;
  1618.     }
  1619.     public function setVpProtocolBlockedForSend(?bool $vpProtocolBlockedForSend): self
  1620.     {
  1621.         $this->vpProtocolBlockedForSend $vpProtocolBlockedForSend;
  1622.         return $this;
  1623.     }
  1624.     /**
  1625.      * @return Collection<int, InterestPaidoff>
  1626.      */
  1627.     public function getInterestPaidoffs(): Collection
  1628.     {
  1629.         return $this->interestPaidoffs;
  1630.     }
  1631.     public function addInterestPaidoff(InterestPaidoff $interestPaidoff): self
  1632.     {
  1633.         if (!$this->interestPaidoffs->contains($interestPaidoff)) {
  1634.             $this->interestPaidoffs[] = $interestPaidoff;
  1635.             $interestPaidoff->setOrderEntity($this);
  1636.         }
  1637.         return $this;
  1638.     }
  1639.     public function removeInterestPaidoff(InterestPaidoff $interestPaidoff): self
  1640.     {
  1641.         if ($this->interestPaidoffs->removeElement($interestPaidoff)) {
  1642.             // set the owning side to null (unless already changed)
  1643.             if ($interestPaidoff->getOrderEntity() === $this) {
  1644.                 $interestPaidoff->setOrderEntity(null);
  1645.             }
  1646.         }
  1647.         return $this;
  1648.     }
  1649.     public function getBirthnumber(): ?string
  1650.     {
  1651.         return $this->birthnumber;
  1652.     }
  1653.     public function setBirthnumber(?string $birthnumber): self
  1654.     {
  1655.         $this->birthnumber $birthnumber;
  1656.         return $this;
  1657.     }
  1658.     public function getOriginOfFunds(): ?string
  1659.     {
  1660.         return $this->originOfFunds;
  1661.     }
  1662.     public function setOriginOfFunds(?string $originOfFunds): self
  1663.     {
  1664.         $this->originOfFunds $originOfFunds;
  1665.         return $this;
  1666.     }
  1667.     public function getOriginOfFundsCustom(): ?string
  1668.     {
  1669.         return $this->originOfFundsCustom;
  1670.     }
  1671.     public function setOriginOfFundsCustom(?string $originOfFundsCustom): self
  1672.     {
  1673.         $this->originOfFundsCustom $originOfFundsCustom;
  1674.         return $this;
  1675.     }
  1676.     public function isPoliticallyExposedPerson(): ?bool
  1677.     {
  1678.         return $this->politicallyExposedPerson;
  1679.     }
  1680.     public function setPoliticallyExposedPerson(?bool $politicallyExposedPerson): self
  1681.     {
  1682.         $this->politicallyExposedPerson $politicallyExposedPerson;
  1683.         return $this;
  1684.     }
  1685.     public function getOwnAgreements(): ?array
  1686.     {
  1687.         return $this->ownAgreements;
  1688.     }
  1689.     public function setOwnAgreements(?array $ownAgreements): self
  1690.     {
  1691.         $this->ownAgreements $ownAgreements;
  1692.         return $this;
  1693.     }
  1694. }