src/Diplix/KMGBundle/Entity/Platform/PlatformClient.php line 13

Open in your IDE?
  1. <?php
  2. namespace Diplix\KMGBundle\Entity\Platform;
  3. use Diplix\KMGBundle\Entity\BasicEntity;
  4. use Diplix\KMGBundle\Entity\Order;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Symfony\Bridge\Doctrine\IdGenerator\UuidGenerator;
  7. /**
  8.  * @ORM\Table(name="platform_clients", indexes={@ORM\Index(name="be_deleted",columns={"be_deleted"})})
  9.  * @ORM\Entity(repositoryClass="Diplix\KMGBundle\Repository\PlatformClientRepository")
  10.  */
  11. class PlatformClient extends BasicEntity
  12. {
  13.     /**
  14.      * @ORM\Column(type="string",name="id")
  15.      * @ORM\Id()
  16.      * @ORM\GeneratedValue(strategy="CUSTOM")
  17.      * @ORM\CustomIdGenerator(class="Symfony\Bridge\Doctrine\IdGenerator\UuidGenerator")
  18.      */
  19.     protected $id;
  20.     /**
  21.      * @ORM\Column(type="string")
  22.      */
  23.     protected $name;
  24.     /**
  25.      * @ORM\Column(type="string")
  26.      */
  27.     protected $pdfSenderShort '(Absender)';
  28.     /**
  29.      * @ORM\Column(type="text")
  30.      */
  31.     protected $pdfSenderLong '';
  32.     /**
  33.      * @ORM\Column(type="text")
  34.      */
  35.     protected $pdfFooter '';
  36.     /**
  37.      * @ORM\ManyToOne(targetEntity="Diplix\KMGBundle\Entity\File", fetch="EAGER")
  38.      * @ORM\JoinColumn(referencedColumnName="id",nullable=true)
  39.      */
  40.     protected $pdfLogo;
  41.     /**
  42.      * @ORM\Column(type="text")
  43.      */
  44.     protected $pdfConfirmationText '';
  45.     /**
  46.      * @ORM\Column(type="string")
  47.      */
  48.     protected $mailSenderName '';
  49.     /**
  50.      * @ORM\Column(type="string")
  51.      */
  52.     protected $mailSenderAddress  '';
  53.     /**
  54.      * @ORM\Column(type="string")
  55.      */
  56.     protected $mailBcc  '';
  57.     /**
  58.      * @ORM\Column(type="string")
  59.      */
  60.     protected $mailReplyTo '';
  61.     /**
  62.      * @ORM\Column(type="string")
  63.      */
  64.     protected $mailDsn  '';
  65.     /**
  66.      * @ORM\Column(type="text")
  67.      */
  68.     protected $mailFooter '';
  69.     /**
  70.      * @ORM\Column(type="text")
  71.      */
  72.     protected $infoNotice '';
  73.     /**
  74.      * @ORM\Column(type="text")
  75.      */
  76.     protected $infoSupport '';
  77.     /**
  78.      * @ORM\ManyToOne(targetEntity="Diplix\KMGBundle\Entity\File", fetch="EAGER")
  79.      * @ORM\JoinColumn(referencedColumnName="id",nullable=true)
  80.      */
  81.     protected $mainLogo;
  82.     /**
  83.      * @ORM\ManyToOne(targetEntity="Diplix\KMGBundle\Entity\File", fetch="EAGER")
  84.      * @ORM\JoinColumn(referencedColumnName="id",nullable=true)
  85.      */
  86.     protected $navLogo;
  87.     /**
  88.      * @ORM\Column(type="json")
  89.      */
  90.     protected $carTypePersons = [];
  91.     /**
  92.      * @ORM\Column(type="integer", nullable=true, options={"default":1})
  93.      * Null or 0..X days to add from current date
  94.      */
  95.     protected $orderTimeOffsetOnNewOrder;
  96.     /**
  97.      * @ORM\Column(type="boolean", options={"default":0})
  98.      */
  99.     protected $ignoreTaxameterForPaymentCalc false;
  100.     /**
  101.      * @ORM\Column(type="boolean", options={"default":0})
  102.      */
  103.     protected $hidePricesForCustomer false;
  104.     /**
  105.      * @ORM\Column(type="boolean", options={"default":0})
  106.      */
  107.     protected $alternateJobListView false;
  108.     /**
  109.      * @ORM\Column(type="boolean", options={"default":0})
  110.      */
  111.     protected $extraFields false;
  112.     /**
  113.      * @ORM\Column(type="boolean", options={"default":0})
  114.      */
  115.     protected $jobAlwaysRecalculateCustomerPrice false;
  116.     /**
  117.      * @ORM\Column(type="boolean", options={"default":1})
  118.      */
  119.     protected $deductKmOnFraCombiRideForCalc true// Flag only for calculation , NOT for rate decision
  120.     /**
  121.      * @ORM\Column(type="integer", nullable=false)
  122.      */
  123.     protected $kmSecurePlusIfGte 0;
  124.     /**
  125.      * @ORM\Column(type="integer", nullable=false)
  126.      */
  127.     protected $kmSecurePlus 0;
  128.     /**
  129.      * @ORM\Column(type="boolean", options={"default":0})
  130.      */
  131.     protected $addTaxiGeldAufschlagToCustomerPrice false;
  132.     /**
  133.      * @ORM\Column(type="integer", nullable=false)
  134.      */
  135.     protected $taxiKmAufschlagKurzstrecke 0;
  136.     /**
  137.      * @ORM\Column(type="text")
  138.      */
  139.     protected $orderNotice '';
  140.     /**
  141.      * @ORM\Column(type="text", nullable=true)
  142.      */
  143.     protected ?string $spryApiKey null;
  144.     /**
  145.      * @ORM\Column(type="text", nullable=true)
  146.      */
  147.     protected ?string $stripeApiKey null;
  148.     /**
  149.      * @ORM\Column(type="text", nullable=true)
  150.      */
  151.     protected ?string $stripePublicKey null;
  152.     /**
  153.      * @ORM\Column(type="text", nullable=false)
  154.      */
  155.     protected string $smsSender '';
  156.     /**
  157.      * @ORM\Column(type="boolean", options={"default":0})
  158.      */
  159.     protected $useRatingMail false;
  160.     /**
  161.      * @ORM\Column(type="string", nullable=false)
  162.      */
  163.     protected string $datenschutzUrl '';
  164.     /**
  165.      * @ORM\Column(type="text")
  166.      */
  167.     protected $memberOrderExportText '';
  168.     /**
  169.      * @ORM\Column(type="boolean", options={"default":1})
  170.      */
  171.     protected $memberOrderExportDetailed true;
  172.     public function __construct($name=null)
  173.     {
  174.         $this->name $name;
  175.     }
  176.     /**
  177.      * @return mixed
  178.      */
  179.     public function getId()
  180.     {
  181.         return $this->id;
  182.     }
  183.     /**
  184.      * @return mixed
  185.      */
  186.     public function getName()
  187.     {
  188.         return $this->name;
  189.     }
  190.     /**
  191.      * @param mixed $name
  192.      */
  193.     public function setName($name): void
  194.     {
  195.         $this->name $name;
  196.     }
  197.     /**
  198.      * @return mixed
  199.      */
  200.     public function getPdfSenderShort()
  201.     {
  202.         return $this->pdfSenderShort;
  203.     }
  204.     /**
  205.      * @param mixed $pdfSenderShort
  206.      */
  207.     public function setPdfSenderShort($pdfSenderShort): void
  208.     {
  209.         $this->pdfSenderShort $pdfSenderShort;
  210.     }
  211.     /**
  212.      * @return mixed
  213.      */
  214.     public function getPdfSenderLong()
  215.     {
  216.         return $this->pdfSenderLong;
  217.     }
  218.     /**
  219.      * @param mixed $pdfSenderLong
  220.      */
  221.     public function setPdfSenderLong($pdfSenderLong): void
  222.     {
  223.         $this->pdfSenderLong $pdfSenderLong;
  224.     }
  225.     /**
  226.      * @return mixed
  227.      */
  228.     public function getPdfFooter()
  229.     {
  230.         return $this->pdfFooter;
  231.     }
  232.     /**
  233.      * @param mixed $pdfFooter
  234.      */
  235.     public function setPdfFooter($pdfFooter): void
  236.     {
  237.         $this->pdfFooter $pdfFooter;
  238.     }
  239.     /**
  240.      * @return mixed
  241.      */
  242.     public function getPdfLogo()
  243.     {
  244.         return $this->pdfLogo;
  245.     }
  246.     /**
  247.      * @param mixed $pdfLogo
  248.      */
  249.     public function setPdfLogo($pdfLogo): void
  250.     {
  251.         $this->pdfLogo $pdfLogo;
  252.     }
  253.     /**
  254.      * @return mixed
  255.      */
  256.     public function getMailSenderName()
  257.     {
  258.         return $this->mailSenderName;
  259.     }
  260.     /**
  261.      * @param mixed $mailSenderName
  262.      */
  263.     public function setMailSenderName($mailSenderName): void
  264.     {
  265.         $this->mailSenderName $mailSenderName;
  266.     }
  267.     /**
  268.      * @return mixed
  269.      */
  270.     public function getMailSenderAddress()
  271.     {
  272.         return $this->mailSenderAddress;
  273.     }
  274.     /**
  275.      * @param mixed $mailSenderAddress
  276.      */
  277.     public function setMailSenderAddress($mailSenderAddress): void
  278.     {
  279.         $this->mailSenderAddress $mailSenderAddress;
  280.     }
  281.     /**
  282.      * @return mixed
  283.      */
  284.     public function getMailBcc()
  285.     {
  286.         return $this->mailBcc;
  287.     }
  288.     /**
  289.      * @param mixed $mailBcc
  290.      */
  291.     public function setMailBcc($mailBcc): void
  292.     {
  293.         $this->mailBcc $mailBcc;
  294.     }
  295.     /**
  296.      * @return mixed
  297.      */
  298.     public function getMailDsn()
  299.     {
  300.         return $this->mailDsn;
  301.     }
  302.     /**
  303.      * @param mixed $mailDsn
  304.      */
  305.     public function setMailDsn($mailDsn): void
  306.     {
  307.         $this->mailDsn $mailDsn;
  308.     }
  309.     /**
  310.      * @return mixed
  311.      */
  312.     public function getMailFooter()
  313.     {
  314.         return $this->mailFooter;
  315.     }
  316.     /**
  317.      * @param mixed $mailFooter
  318.      */
  319.     public function setMailFooter($mailFooter): void
  320.     {
  321.         $this->mailFooter $mailFooter;
  322.     }
  323.     /**
  324.      * @return string
  325.      */
  326.     public function getPdfConfirmationText(): string
  327.     {
  328.         return $this->pdfConfirmationText;
  329.     }
  330.     /**
  331.      * @param string $pdfConfirmationText
  332.      */
  333.     public function setPdfConfirmationText(string $pdfConfirmationText): void
  334.     {
  335.         $this->pdfConfirmationText $pdfConfirmationText;
  336.     }
  337.     /**
  338.      * @return string
  339.      */
  340.     public function getInfoNotice(): string
  341.     {
  342.         return $this->infoNotice;
  343.     }
  344.     /**
  345.      * @param string $infoNotice
  346.      */
  347.     public function setInfoNotice(string $infoNotice): void
  348.     {
  349.         $this->infoNotice $infoNotice;
  350.     }
  351.     /**
  352.      * @return string
  353.      */
  354.     public function getInfoSupport(): string
  355.     {
  356.         return $this->infoSupport;
  357.     }
  358.     /**
  359.      * @param string $infoSupport
  360.      */
  361.     public function setInfoSupport(string $infoSupport): void
  362.     {
  363.         $this->infoSupport $infoSupport;
  364.     }
  365.     /**
  366.      * @return mixed
  367.      */
  368.     public function getMainLogo()
  369.     {
  370.         return $this->mainLogo;
  371.     }
  372.     /**
  373.      * @param mixed $mainLogo
  374.      */
  375.     public function setMainLogo($mainLogo): void
  376.     {
  377.         $this->mainLogo $mainLogo;
  378.     }
  379.     /**
  380.      * @return mixed
  381.      */
  382.     public function getNavLogo()
  383.     {
  384.         return $this->navLogo;
  385.     }
  386.     /**
  387.      * @param mixed $navLogo
  388.      */
  389.     public function setNavLogo($navLogo): void
  390.     {
  391.         $this->navLogo $navLogo;
  392.     }
  393.     /**
  394.      * @return array
  395.      */
  396.     public function getCarTypePersons(): array
  397.     {
  398.         return array_merge(Order::$carPersonsMax$this->carTypePersons ?? []);
  399.     }
  400.     /**
  401.      * @param array $carTypePersons
  402.      */
  403.     public function setCarTypePersons(array $carTypePersons): void
  404.     {
  405.         $this->carTypePersons $carTypePersons;
  406.     }
  407.     /**
  408.      * @return int|null
  409.      */
  410.     public function getOrderTimeOffsetOnNewOrder()
  411.     {
  412.         return $this->orderTimeOffsetOnNewOrder;
  413.     }
  414.     /**
  415.      * @param mixed $orderTimeOffsetOnNewOrder
  416.      */
  417.     public function setOrderTimeOffsetOnNewOrder($orderTimeOffsetOnNewOrder): void
  418.     {
  419.         $this->orderTimeOffsetOnNewOrder $orderTimeOffsetOnNewOrder;
  420.     }
  421.     /**
  422.      * @return bool
  423.      */
  424.     public function isIgnoreTaxameterForPaymentCalc(): bool
  425.     {
  426.         return $this->ignoreTaxameterForPaymentCalc;
  427.     }
  428.     /**
  429.      * @param bool $ignoreTaxameterForPaymentCalc
  430.      */
  431.     public function setIgnoreTaxameterForPaymentCalc(bool $ignoreTaxameterForPaymentCalc): void
  432.     {
  433.         $this->ignoreTaxameterForPaymentCalc $ignoreTaxameterForPaymentCalc;
  434.     }
  435.     /**
  436.      * @return bool
  437.      */
  438.     public function isHidePricesForCustomer(): bool
  439.     {
  440.         return $this->hidePricesForCustomer;
  441.     }
  442.     /**
  443.      * @param bool $hidePricesForCustomer
  444.      */
  445.     public function setHidePricesForCustomer(bool $hidePricesForCustomer): void
  446.     {
  447.         $this->hidePricesForCustomer $hidePricesForCustomer;
  448.     }
  449.     /**
  450.      * @return bool
  451.      */
  452.     public function isAlternateJobListView(): bool
  453.     {
  454.         return $this->alternateJobListView;
  455.     }
  456.     /**
  457.      * @param bool $alternateJobListView
  458.      */
  459.     public function setAlternateJobListView(bool $alternateJobListView): void
  460.     {
  461.         $this->alternateJobListView $alternateJobListView;
  462.     }
  463.     /**
  464.      * @return bool
  465.      */
  466.     public function isExtraFields(): bool
  467.     {
  468.         return $this->extraFields;
  469.     }
  470.     /**
  471.      * @param bool $extraFields
  472.      */
  473.     public function setExtraFields(bool $extraFields): void
  474.     {
  475.         $this->extraFields $extraFields;
  476.     }
  477.     /**
  478.      * @return bool
  479.      */
  480.     public function isJobAlwaysRecalculateCustomerPrice(): bool
  481.     {
  482.         return $this->jobAlwaysRecalculateCustomerPrice;
  483.     }
  484.     /**
  485.      * @param bool $jobAlwaysRecalculateCustomerPrice
  486.      */
  487.     public function setJobAlwaysRecalculateCustomerPrice(bool $jobAlwaysRecalculateCustomerPrice): void
  488.     {
  489.         $this->jobAlwaysRecalculateCustomerPrice $jobAlwaysRecalculateCustomerPrice;
  490.     }
  491.     /**
  492.      * @return bool
  493.      */
  494.     public function isDeductKmOnFraCombiRideForCalc(): bool
  495.     {
  496.         return $this->deductKmOnFraCombiRideForCalc;
  497.     }
  498.     /**
  499.      * @param bool $deductKmOnFraCombiRideForCalc
  500.      */
  501.     public function setDeductKmOnFraCombiRideForCalc(bool $deductKmOnFraCombiRideForCalc): void
  502.     {
  503.         $this->deductKmOnFraCombiRideForCalc $deductKmOnFraCombiRideForCalc;
  504.     }
  505.     /**
  506.      * @return int
  507.      */
  508.     public function getKmSecurePlusIfGte(): int
  509.     {
  510.         return $this->kmSecurePlusIfGte;
  511.     }
  512.     /**
  513.      * @param int $kmSecurePlusIfGte
  514.      */
  515.     public function setKmSecurePlusIfGte(int $kmSecurePlusIfGte): void
  516.     {
  517.         $this->kmSecurePlusIfGte $kmSecurePlusIfGte;
  518.     }
  519.     /**
  520.      * @return int
  521.      */
  522.     public function getKmSecurePlus(): int
  523.     {
  524.         return $this->kmSecurePlus;
  525.     }
  526.     /**
  527.      * @param int $kmSecurePlus
  528.      */
  529.     public function setKmSecurePlus(int $kmSecurePlus): void
  530.     {
  531.         $this->kmSecurePlus $kmSecurePlus;
  532.     }
  533.     /**
  534.      * @return int
  535.      */
  536.     public function getTaxiKmAufschlagKurzstrecke(): int
  537.     {
  538.         return $this->taxiKmAufschlagKurzstrecke;
  539.     }
  540.     /**
  541.      * @param int $taxiKmAufschlagKurzstrecke
  542.      */
  543.     public function setTaxiKmAufschlagKurzstrecke(int $taxiKmAufschlagKurzstrecke): void
  544.     {
  545.         $this->taxiKmAufschlagKurzstrecke $taxiKmAufschlagKurzstrecke;
  546.     }
  547.     /**
  548.      * @return string
  549.      */
  550.     public function getOrderNotice(): string
  551.     {
  552.         return $this->orderNotice;
  553.     }
  554.     /**
  555.      * @param string $orderNotice
  556.      */
  557.     public function setOrderNotice(string $orderNotice): void
  558.     {
  559.         $this->orderNotice $orderNotice;
  560.     }
  561.     /**
  562.      * @return bool
  563.      */
  564.     public function isAddTaxiGeldAufschlagToCustomerPrice(): bool
  565.     {
  566.         return $this->addTaxiGeldAufschlagToCustomerPrice;
  567.     }
  568.     /**
  569.      * @param bool $addTaxiGeldAufschlagToCustomerPrice
  570.      */
  571.     public function setAddTaxiGeldAufschlagToCustomerPrice(bool $addTaxiGeldAufschlagToCustomerPrice): void
  572.     {
  573.         $this->addTaxiGeldAufschlagToCustomerPrice $addTaxiGeldAufschlagToCustomerPrice;
  574.     }
  575.     /**
  576.      * @return null
  577.      */
  578.     public function getSpryApiKey()
  579.     {
  580.         return $this->spryApiKey;
  581.     }
  582.     /**
  583.      * @param null $spryApiKey
  584.      */
  585.     public function setSpryApiKey($spryApiKey): void
  586.     {
  587.         $this->spryApiKey $spryApiKey;
  588.     }
  589.     /**
  590.      * @return string
  591.      */
  592.     public function getSmsSender(): string
  593.     {
  594.         return $this->smsSender;
  595.     }
  596.     /**
  597.      * @param string $smsSender
  598.      */
  599.     public function setSmsSender(string $smsSender): void
  600.     {
  601.         $this->smsSender $smsSender;
  602.     }
  603.     /**
  604.      * @return bool
  605.      */
  606.     public function isUseRatingMail(): bool
  607.     {
  608.         return $this->useRatingMail;
  609.     }
  610.     /**
  611.      * @param bool $useRatingMail
  612.      */
  613.     public function setUseRatingMail(bool $useRatingMail): void
  614.     {
  615.         $this->useRatingMail $useRatingMail;
  616.     }
  617.     /**
  618.      * @return string
  619.      */
  620.     public function getDatenschutzUrl(): string
  621.     {
  622.         return $this->datenschutzUrl;
  623.     }
  624.     /**
  625.      * @param string $datenschutzUrl
  626.      */
  627.     public function setDatenschutzUrl(string $datenschutzUrl): void
  628.     {
  629.         $this->datenschutzUrl $datenschutzUrl;
  630.     }
  631.     /**
  632.      * @return string
  633.      */
  634.     public function getMailReplyTo(): string
  635.     {
  636.         return $this->mailReplyTo;
  637.     }
  638.     /**
  639.      * @param string $mailReplyTo
  640.      */
  641.     public function setMailReplyTo(string $mailReplyTo): void
  642.     {
  643.         $this->mailReplyTo $mailReplyTo;
  644.     }
  645.     /**
  646.      * @return string
  647.      */
  648.     public function getMemberOrderExportText(): string
  649.     {
  650.         return $this->memberOrderExportText;
  651.     }
  652.     /**
  653.      * @param string $memberOrderExportText
  654.      */
  655.     public function setMemberOrderExportText(string $memberOrderExportText): void
  656.     {
  657.         $this->memberOrderExportText $memberOrderExportText;
  658.     }
  659.     public function isMemberOrderExportDetailed(): bool
  660.     {
  661.         return $this->memberOrderExportDetailed;
  662.     }
  663.     public function setMemberOrderExportDetailed(bool $memberOrderExportDetailed): void
  664.     {
  665.         $this->memberOrderExportDetailed $memberOrderExportDetailed;
  666.     }
  667.     public function getStripeApiKey(): ?string
  668.     {
  669.         return $this->stripeApiKey;
  670.     }
  671.     public function setStripeApiKey(?string $stripeApiKey): void
  672.     {
  673.         $this->stripeApiKey $stripeApiKey;
  674.     }
  675.     public function getStripePublicKey(): ?string
  676.     {
  677.         return $this->stripePublicKey;
  678.     }
  679.     public function setStripePublicKey(?string $stripePublicKey): void
  680.     {
  681.         $this->stripePublicKey $stripePublicKey;
  682.     }
  683. }