src/Entity/MmpOffers.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\Common\Collections\ArrayCollection;
  4. use Doctrine\Common\Collections\Collection;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Doctrine\ORM\Mapping\OneToMany;
  7. /**
  8.  * @ORM\Entity(repositoryClass="App\Repository\MmpOffersRepository")
  9.  * @ORM\Table(indexes={@ORM\Index(name="mobile_app", columns={"mobile_app"}),@ORM\Index(name="mmp_source", columns={"mmp_source"}),@ORM\Index(name="is_deleted", columns={"is_deleted"})})
  10.  */
  11. class MmpOffers{
  12.     /**
  13.      * @ORM\Column(type="integer")
  14.      * @ORM\Id
  15.      * @ORM\GeneratedValue(strategy="AUTO")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @OneToMany(targetEntity="App\Entity\AdjustOfferCampaignMapping", mappedBy="mmpOffer")
  20.      */
  21.     private $adjustOfferCampaignMapping;
  22.     /**
  23.      * @ORM\Column(type="string", nullable=true)
  24.      */
  25.     private $advertiser;
  26.     /**
  27.      * @ORM\Column(type="string", nullable=false)
  28.      */
  29.     private $offerName;
  30.     /**
  31.      * @ORM\Column(type="integer", nullable=true)
  32.      */
  33.     private $hoOfferId;
  34.     /**
  35.      * @ORM\Column(type="integer", nullable=true)
  36.      */
  37.     private $mmpMobileAppsId;
  38.     /**
  39.      * @ORM\Column(type="string", nullable=false)
  40.      */
  41.     private $offerCountry;
  42.     /**
  43.      * @ORM\Column(type="string", nullable=true)
  44.      */
  45.     private $offerRegion;
  46.     /**
  47.      * @ORM\Column(type="string", nullable=true)
  48.      */
  49.     private $offerCity;
  50.     /**
  51.      * @ORM\Column(type="string", nullable=true)
  52.      */
  53.     private $mobileApp;
  54.     /**
  55.      * @ORM\Column(type="string", nullable=true)
  56.      */
  57.     private $defaultRevenueModel;
  58.     /**
  59.      * @ORM\Column(type="string", nullable=true)
  60.      */
  61.     private $defaultPayoutModel;
  62.     /**
  63.      * @ORM\Column(type="string", nullable=true)
  64.      */
  65.     private $defaultRevenueEvent;
  66.     /**
  67.      * @ORM\Column(type="decimal", scale=4, nullable=false)
  68.      */
  69.     private $defaultRevenue;
  70.     /**
  71.      * @ORM\Column(type="decimal", scale=4, nullable=false)
  72.      */
  73.     private $defaultPayout;
  74.     /**
  75.      * @ORM\Column(type="boolean", nullable=true, options={"default"=false})
  76.      */
  77.     private $isDeleted;
  78.     /**
  79.      * @ORM\Column(type="boolean", nullable=true, options={"default"=false})
  80.      */
  81.     private $isHoOfferMappingEnabled;
  82.     /**
  83.      * @ORM\Column(type="string", nullable=true)
  84.      */
  85.     private $addedBy;
  86.     /**
  87.      * @ORM\Column(type="string", nullable=true)
  88.      */
  89.     private $mmpSource;
  90.     /**
  91.      * @ORM\Column(type="string", nullable=true)
  92.      */
  93.     private $calculateCostBy;
  94.     /**
  95.      * @ORM\Column(type="string", nullable=true)
  96.      */
  97.     private $mmpAdjustAttributionType;
  98.     /**
  99.      * @ORM\Column(type="string", length=20, nullable=true)
  100.      */
  101.     private $offerType;
  102.     /**
  103.      * @ORM\Column(type="boolean", nullable=true, options={"default"=false})
  104.      */
  105.     private $isHoAffiliateWhitelistEnabledForEmail;
  106.     /**
  107.      * @ORM\Column(type="array", nullable=true)
  108.      */
  109.     private $whitelistedHoAffiliateIdsForEmail;
  110.     /**
  111.      * @ORM\Column(type="boolean", nullable=true, options={"default"=false})
  112.      */
  113.     private $enableCaps;
  114.     /**
  115.      * @ORM\Column(type="integer", nullable=true)
  116.      */
  117.     private $dailyPayoutCap;
  118.     /**
  119.      * @ORM\Column(type="integer", nullable=true)
  120.      */
  121.     private $monthlyPayoutCap;
  122.     /**
  123.      * @ORM\Column(type="integer", nullable=true)
  124.      */
  125.     private $lifetimePayoutCap;
  126.     /**
  127.      * @ORM\Column(type="integer", nullable=true)
  128.      */
  129.     private $dailyRevenueCap;
  130.     /**
  131.      * @ORM\Column(type="integer", nullable=true)
  132.      */
  133.     private $monthlyRevenueCap;
  134.     /**
  135.      * @ORM\Column(type="integer", nullable=true)
  136.      */
  137.     private $lifetimeRevenueCap;
  138.     /**
  139.      * @ORM\Column(type="integer", nullable=true)
  140.      */
  141.     private $dailyConversionCap;
  142.     /**
  143.      * @ORM\Column(type="integer", nullable=true)
  144.      */
  145.     private $monthlyConversionCap;
  146.     /**
  147.      * @ORM\Column(type="integer", nullable=true)
  148.      */
  149.     private $lifetimeConversionCap;
  150.     /**
  151.      * @ORM\Column(type="decimal", precision=12,  scale=2, nullable=true)
  152.      */
  153.     private $monthlyBudgetGeneratedFromMMPReport;
  154.     /**
  155.      * @ORM\Column(type="datetime")
  156.      */
  157.     private $dateUpdated;
  158.     /**
  159.      * @ORM\Column(type="datetime")
  160.      */
  161.     private $dateInserted;
  162.     /**
  163.      * @ORM\Column(type="text", nullable=true)
  164.      */
  165.     private $kpi;
  166.     /**
  167.      * @ORM\Column(type="boolean", nullable=true, options={"default"=true})
  168.      */
  169.     private $isPrivatePublisherCabinet;
  170.     /**
  171.      * @OneToMany(targetEntity="App\Entity\MmpOfferPublisherMapping", mappedBy="mmpOffer", cascade={"persist", "remove"})
  172.      */
  173.     private $publisherMappings;
  174.     public function __construct()
  175.     {
  176.         $this->adjustOfferCampaignMapping = new ArrayCollection();
  177.         $this->publisherMappings = new ArrayCollection();
  178.     }
  179.     
  180.     /**
  181.      * Get id.
  182.      *
  183.      * @return int
  184.      */
  185.     public function getId()
  186.     {
  187.         return $this->id;
  188.     }
  189.     /**
  190.      * Set advertiser.
  191.      *
  192.      * @param string|null $advertiser
  193.      *
  194.      * @return MmpOffers
  195.      */
  196.     public function setAdvertiser($advertiser null)
  197.     {
  198.         $this->advertiser $advertiser;
  199.         return $this;
  200.     }
  201.     /**
  202.      * Get advertiser.
  203.      *
  204.      * @return string|null
  205.      */
  206.     public function getAdvertiser()
  207.     {
  208.         return $this->advertiser;
  209.     }
  210.     /**
  211.      * Set offerName.
  212.      *
  213.      * @param string $offerName
  214.      *
  215.      * @return MmpOffers
  216.      */
  217.     public function setOfferName($offerName)
  218.     {
  219.         $this->offerName $offerName;
  220.         return $this;
  221.     }
  222.     /**
  223.      * Get offerName.
  224.      *
  225.      * @return string
  226.      */
  227.     public function getOfferName()
  228.     {
  229.         return $this->offerName;
  230.     }
  231.     /**
  232.      * Set hoOfferId.
  233.      *
  234.      * @param int|null $hoOfferId
  235.      *
  236.      * @return MmpOffers
  237.      */
  238.     public function setHoOfferId($hoOfferId null)
  239.     {
  240.         $this->hoOfferId $hoOfferId;
  241.         return $this;
  242.     }
  243.     /**
  244.      * Get hoOfferId.
  245.      *
  246.      * @return int|null
  247.      */
  248.     public function getHoOfferId()
  249.     {
  250.         return $this->hoOfferId;
  251.     }
  252.     /**
  253.      * Set offerCountry.
  254.      *
  255.      * @param string $offerCountry
  256.      *
  257.      * @return MmpOffers
  258.      */
  259.     public function setOfferCountry($offerCountry)
  260.     {
  261.         $this->offerCountry $offerCountry;
  262.         return $this;
  263.     }
  264.     /**
  265.      * Get offerCountry.
  266.      *
  267.      * @return string
  268.      */
  269.     public function getOfferCountry()
  270.     {
  271.         return $this->offerCountry;
  272.     }
  273.     /**
  274.      * Set offerRegion.
  275.      *
  276.      * @param string|null $offerRegion
  277.      *
  278.      * @return MmpOffers
  279.      */
  280.     public function setOfferRegion($offerRegion null)
  281.     {
  282.         $this->offerRegion $offerRegion;
  283.         return $this;
  284.     }
  285.     /**
  286.      * Get offerRegion.
  287.      *
  288.      * @return string|null
  289.      */
  290.     public function getOfferRegion()
  291.     {
  292.         return $this->offerRegion;
  293.     }
  294.     /**
  295.      * Set offerCity.
  296.      *
  297.      * @param string|null $offerCity
  298.      *
  299.      * @return MmpOffers
  300.      */
  301.     public function setOfferCity($offerCity null)
  302.     {
  303.         $this->offerCity $offerCity;
  304.         return $this;
  305.     }
  306.     /**
  307.      * Get offerCity.
  308.      *
  309.      * @return string|null
  310.      */
  311.     public function getOfferCity()
  312.     {
  313.         return $this->offerCity;
  314.     }
  315.     /**
  316.      * Set mobileApp.
  317.      *
  318.      * @param string|null $mobileApp
  319.      *
  320.      * @return MmpOffers
  321.      */
  322.     public function setMobileApp($mobileApp null)
  323.     {
  324.         $this->mobileApp $mobileApp;
  325.         return $this;
  326.     }
  327.     /**
  328.      * Get mobileApp.
  329.      *
  330.      * @return string|null
  331.      */
  332.     public function getMobileApp()
  333.     {
  334.         return $this->mobileApp;
  335.     }
  336.     /**
  337.      * Set defaultRevenueModel.
  338.      *
  339.      * @param string|null $defaultRevenueModel
  340.      *
  341.      * @return MmpOffers
  342.      */
  343.     public function setDefaultRevenueModel($defaultRevenueModel null)
  344.     {
  345.         $this->defaultRevenueModel $defaultRevenueModel;
  346.         return $this;
  347.     }
  348.     /**
  349.      * Get defaultRevenueModel.
  350.      *
  351.      * @return string|null
  352.      */
  353.     public function getDefaultRevenueModel()
  354.     {
  355.         return $this->defaultRevenueModel;
  356.     }
  357.     /**
  358.      * Set defaultPayoutModel.
  359.      *
  360.      * @param string|null $defaultPayoutModel
  361.      *
  362.      * @return MmpOffers
  363.      */
  364.     public function setDefaultPayoutModel($defaultPayoutModel null)
  365.     {
  366.         $this->defaultPayoutModel $defaultPayoutModel;
  367.         return $this;
  368.     }
  369.     /**
  370.      * Get defaultPayoutModel.
  371.      *
  372.      * @return string|null
  373.      */
  374.     public function getDefaultPayoutModel()
  375.     {
  376.         return $this->defaultPayoutModel;
  377.     }
  378.     /**
  379.      * Set defaultRevenueEvent.
  380.      *
  381.      * @param string|null $defaultRevenueEvent
  382.      *
  383.      * @return MmpOffers
  384.      */
  385.     public function setDefaultRevenueEvent($defaultRevenueEvent null)
  386.     {
  387.         $this->defaultRevenueEvent $defaultRevenueEvent;
  388.         return $this;
  389.     }
  390.     /**
  391.      * Get defaultRevenueEvent.
  392.      *
  393.      * @return string|null
  394.      */
  395.     public function getDefaultRevenueEvent()
  396.     {
  397.         return $this->defaultRevenueEvent;
  398.     }
  399.     /**
  400.      * Set defaultRevenue.
  401.      *
  402.      * @param string $defaultRevenue
  403.      *
  404.      * @return MmpOffers
  405.      */
  406.     public function setDefaultRevenue($defaultRevenue)
  407.     {
  408.         $this->defaultRevenue $defaultRevenue;
  409.         return $this;
  410.     }
  411.     /**
  412.      * Get defaultRevenue.
  413.      *
  414.      * @return string
  415.      */
  416.     public function getDefaultRevenue()
  417.     {
  418.         return $this->defaultRevenue;
  419.     }
  420.     /**
  421.      * Set defaultPayout.
  422.      *
  423.      * @param string $defaultPayout
  424.      *
  425.      * @return MmpOffers
  426.      */
  427.     public function setDefaultPayout($defaultPayout)
  428.     {
  429.         $this->defaultPayout $defaultPayout;
  430.         return $this;
  431.     }
  432.     /**
  433.      * Get defaultPayout.
  434.      *
  435.      * @return string
  436.      */
  437.     public function getDefaultPayout()
  438.     {
  439.         return $this->defaultPayout;
  440.     }
  441.     /**
  442.      * Set isDeleted.
  443.      *
  444.      * @param bool|null $isDeleted
  445.      *
  446.      * @return MmpOffers
  447.      */
  448.     public function setIsDeleted($isDeleted null)
  449.     {
  450.         $this->isDeleted $isDeleted;
  451.         return $this;
  452.     }
  453.     /**
  454.      * Get isDeleted.
  455.      *
  456.      * @return bool|null
  457.      */
  458.     public function getIsDeleted()
  459.     {
  460.         return $this->isDeleted;
  461.     }
  462.     /**
  463.      * Set isHoOfferMappingEnabled.
  464.      *
  465.      * @param bool|null $isHoOfferMappingEnabled
  466.      *
  467.      * @return MmpOffers
  468.      */
  469.     public function setIsHoOfferMappingEnabled($isHoOfferMappingEnabled null)
  470.     {
  471.         $this->isHoOfferMappingEnabled $isHoOfferMappingEnabled;
  472.         return $this;
  473.     }
  474.     /**
  475.      * Get isHoOfferMappingEnabled.
  476.      *
  477.      * @return bool|null
  478.      */
  479.     public function getIsHoOfferMappingEnabled()
  480.     {
  481.         return $this->isHoOfferMappingEnabled;
  482.     }
  483.     /**
  484.      * Set addedBy.
  485.      *
  486.      * @param string|null $addedBy
  487.      *
  488.      * @return MmpOffers
  489.      */
  490.     public function setAddedBy($addedBy null)
  491.     {
  492.         $this->addedBy $addedBy;
  493.         return $this;
  494.     }
  495.     /**
  496.      * Get addedBy.
  497.      *
  498.      * @return string|null
  499.      */
  500.     public function getAddedBy()
  501.     {
  502.         return $this->addedBy;
  503.     }
  504.     /**
  505.      * Set mmpSource.
  506.      *
  507.      * @param string|null $mmpSource
  508.      *
  509.      * @return MmpOffers
  510.      */
  511.     public function setMmpSource($mmpSource null)
  512.     {
  513.         $this->mmpSource $mmpSource;
  514.         return $this;
  515.     }
  516.     /**
  517.      * Get mmpSource.
  518.      *
  519.      * @return string|null
  520.      */
  521.     public function getMmpSource()
  522.     {
  523.         return $this->mmpSource;
  524.     }
  525.     /**
  526.      * Set calculateCostBy.
  527.      *
  528.      * @param string|null $calculateCostBy
  529.      *
  530.      * @return MmpOffers
  531.      */
  532.     public function setCalculateCostBy($calculateCostBy null)
  533.     {
  534.         $this->calculateCostBy $calculateCostBy;
  535.         return $this;
  536.     }
  537.     /**
  538.      * Get calculateCostBy.
  539.      *
  540.      * @return string|null
  541.      */
  542.     public function getCalculateCostBy()
  543.     {
  544.         return $this->calculateCostBy;
  545.     }
  546.     /**
  547.      * Set mmpAdjustAttributionType.
  548.      *
  549.      * @param string|null $mmpAdjustAttributionType
  550.      *
  551.      * @return MmpOffers
  552.      */
  553.     public function setMmpAdjustAttributionType($mmpAdjustAttributionType null)
  554.     {
  555.         $this->mmpAdjustAttributionType $mmpAdjustAttributionType;
  556.         return $this;
  557.     }
  558.     /**
  559.      * Get mmpAdjustAttributionType.
  560.      *
  561.      * @return string|null
  562.      */
  563.     public function getMmpAdjustAttributionType()
  564.     {
  565.         return $this->mmpAdjustAttributionType;
  566.     }
  567.     /**
  568.      * Set offerType.
  569.      *
  570.      * @param string|null $offerType
  571.      *
  572.      * @return MmpOffers
  573.      */
  574.     public function setOfferType($offerType null)
  575.     {
  576.         $this->offerType $offerType;
  577.         return $this;
  578.     }
  579.     /**
  580.      * Get offerType.
  581.      *
  582.      * @return string|null
  583.      */
  584.     public function getOfferType()
  585.     {
  586.         return $this->offerType;
  587.     }
  588.     /**
  589.      * Set isHoAffiliateWhitelistEnabledForEmail.
  590.      *
  591.      * @param bool|null $isHoAffiliateWhitelistEnabledForEmail
  592.      *
  593.      * @return MmpOffers
  594.      */
  595.     public function setIsHoAffiliateWhitelistEnabledForEmail($isHoAffiliateWhitelistEnabledForEmail null)
  596.     {
  597.         $this->isHoAffiliateWhitelistEnabledForEmail $isHoAffiliateWhitelistEnabledForEmail;
  598.         return $this;
  599.     }
  600.     /**
  601.      * Get isHoAffiliateWhitelistEnabledForEmail.
  602.      *
  603.      * @return bool|null
  604.      */
  605.     public function getIsHoAffiliateWhitelistEnabledForEmail()
  606.     {
  607.         return $this->isHoAffiliateWhitelistEnabledForEmail;
  608.     }
  609.     /**
  610.      * Set whitelistedHoAffiliateIdsForEmail.
  611.      *
  612.      * @param array|null $whitelistedHoAffiliateIdsForEmail
  613.      *
  614.      * @return MmpOffers
  615.      */
  616.     public function setWhitelistedHoAffiliateIdsForEmail($whitelistedHoAffiliateIdsForEmail null)
  617.     {
  618.         $this->whitelistedHoAffiliateIdsForEmail $whitelistedHoAffiliateIdsForEmail;
  619.         return $this;
  620.     }
  621.     /**
  622.      * Get whitelistedHoAffiliateIdsForEmail.
  623.      *
  624.      * @return array|null
  625.      */
  626.     public function getWhitelistedHoAffiliateIdsForEmail()
  627.     {
  628.         return $this->whitelistedHoAffiliateIdsForEmail;
  629.     }
  630.     /**
  631.      * Set enableCaps.
  632.      *
  633.      * @param bool|null $enableCaps
  634.      *
  635.      * @return MmpOffers
  636.      */
  637.     public function setEnableCaps($enableCaps null)
  638.     {
  639.         $this->enableCaps $enableCaps;
  640.         return $this;
  641.     }
  642.     /**
  643.      * Get enableCaps.
  644.      *
  645.      * @return bool|null
  646.      */
  647.     public function getEnableCaps()
  648.     {
  649.         return $this->enableCaps;
  650.     }
  651.     /**
  652.      * Set dailyPayoutCap.
  653.      *
  654.      * @param int|null $dailyPayoutCap
  655.      *
  656.      * @return MmpOffers
  657.      */
  658.     public function setDailyPayoutCap($dailyPayoutCap null)
  659.     {
  660.         $this->dailyPayoutCap $dailyPayoutCap;
  661.         return $this;
  662.     }
  663.     /**
  664.      * Get dailyPayoutCap.
  665.      *
  666.      * @return int|null
  667.      */
  668.     public function getDailyPayoutCap()
  669.     {
  670.         return $this->dailyPayoutCap;
  671.     }
  672.     /**
  673.      * Set monthlyPayoutCap.
  674.      *
  675.      * @param int|null $monthlyPayoutCap
  676.      *
  677.      * @return MmpOffers
  678.      */
  679.     public function setMonthlyPayoutCap($monthlyPayoutCap null)
  680.     {
  681.         $this->monthlyPayoutCap $monthlyPayoutCap;
  682.         return $this;
  683.     }
  684.     /**
  685.      * Get monthlyPayoutCap.
  686.      *
  687.      * @return int|null
  688.      */
  689.     public function getMonthlyPayoutCap()
  690.     {
  691.         return $this->monthlyPayoutCap;
  692.     }
  693.     /**
  694.      * Set lifetimePayoutCap.
  695.      *
  696.      * @param int|null $lifetimePayoutCap
  697.      *
  698.      * @return MmpOffers
  699.      */
  700.     public function setLifetimePayoutCap($lifetimePayoutCap null)
  701.     {
  702.         $this->lifetimePayoutCap $lifetimePayoutCap;
  703.         return $this;
  704.     }
  705.     /**
  706.      * Get lifetimePayoutCap.
  707.      *
  708.      * @return int|null
  709.      */
  710.     public function getLifetimePayoutCap()
  711.     {
  712.         return $this->lifetimePayoutCap;
  713.     }
  714.     /**
  715.      * Set dailyRevenueCap.
  716.      *
  717.      * @param int|null $dailyRevenueCap
  718.      *
  719.      * @return MmpOffers
  720.      */
  721.     public function setDailyRevenueCap($dailyRevenueCap null)
  722.     {
  723.         $this->dailyRevenueCap $dailyRevenueCap;
  724.         return $this;
  725.     }
  726.     /**
  727.      * Get dailyRevenueCap.
  728.      *
  729.      * @return int|null
  730.      */
  731.     public function getDailyRevenueCap()
  732.     {
  733.         return $this->dailyRevenueCap;
  734.     }
  735.     /**
  736.      * Set monthlyRevenueCap.
  737.      *
  738.      * @param int|null $monthlyRevenueCap
  739.      *
  740.      * @return MmpOffers
  741.      */
  742.     public function setMonthlyRevenueCap($monthlyRevenueCap null)
  743.     {
  744.         $this->monthlyRevenueCap $monthlyRevenueCap;
  745.         return $this;
  746.     }
  747.     /**
  748.      * Get monthlyRevenueCap.
  749.      *
  750.      * @return int|null
  751.      */
  752.     public function getMonthlyRevenueCap()
  753.     {
  754.         return $this->monthlyRevenueCap;
  755.     }
  756.     /**
  757.      * Set lifetimeRevenueCap.
  758.      *
  759.      * @param int|null $lifetimeRevenueCap
  760.      *
  761.      * @return MmpOffers
  762.      */
  763.     public function setLifetimeRevenueCap($lifetimeRevenueCap null)
  764.     {
  765.         $this->lifetimeRevenueCap $lifetimeRevenueCap;
  766.         return $this;
  767.     }
  768.     /**
  769.      * Get lifetimeRevenueCap.
  770.      *
  771.      * @return int|null
  772.      */
  773.     public function getLifetimeRevenueCap()
  774.     {
  775.         return $this->lifetimeRevenueCap;
  776.     }
  777.     /**
  778.      * Set dateUpdated.
  779.      *
  780.      * @param \DateTime $dateUpdated
  781.      *
  782.      * @return MmpOffers
  783.      */
  784.     public function setDateUpdated($dateUpdated)
  785.     {
  786.         $this->dateUpdated $dateUpdated;
  787.         return $this;
  788.     }
  789.     /**
  790.      * Get dateUpdated.
  791.      *
  792.      * @return \DateTime
  793.      */
  794.     public function getDateUpdated()
  795.     {
  796.         return $this->dateUpdated;
  797.     }
  798.     /**
  799.      * Set dateInserted.
  800.      *
  801.      * @param \DateTime $dateInserted
  802.      *
  803.      * @return MmpOffers
  804.      */
  805.     public function setDateInserted($dateInserted)
  806.     {
  807.         $this->dateInserted $dateInserted;
  808.         return $this;
  809.     }
  810.     /**
  811.      * Get dateInserted.
  812.      *
  813.      * @return \DateTime
  814.      */
  815.     public function getDateInserted()
  816.     {
  817.         return $this->dateInserted;
  818.     }
  819.     /**
  820.      * Set kpi.
  821.      *
  822.      * @param string|null $kpi
  823.      *
  824.      * @return MmpOffers
  825.      */
  826.     public function setKpi($kpi)
  827.     {
  828.         $this->kpi $kpi;
  829.         return $this;
  830.     }
  831.     /**
  832.      * Get kpi.
  833.      *
  834.      * @return string|null
  835.      */
  836.     public function getKpi()
  837.     {
  838.         return $this->kpi;
  839.     }
  840.     /**
  841.      * Set dailyConversionCap.
  842.      *
  843.      * @param int|null $dailyConversionCap
  844.      *
  845.      * @return MmpOffers
  846.      */
  847.     public function setDailyConversionCap($dailyConversionCap null)
  848.     {
  849.         $this->dailyConversionCap $dailyConversionCap;
  850.         return $this;
  851.     }
  852.     /**
  853.      * Get dailyConversionCap.
  854.      *
  855.      * @return int|null
  856.      */
  857.     public function getDailyConversionCap()
  858.     {
  859.         return $this->dailyConversionCap;
  860.     }
  861.     /**
  862.      * Set monthlyConversionCap.
  863.      *
  864.      * @param int|null $monthlyConversionCap
  865.      *
  866.      * @return MmpOffers
  867.      */
  868.     public function setMonthlyConversionCap($monthlyConversionCap null)
  869.     {
  870.         $this->monthlyConversionCap $monthlyConversionCap;
  871.         return $this;
  872.     }
  873.     /**
  874.      * Get monthlyConversionCap.
  875.      *
  876.      * @return int|null
  877.      */
  878.     public function getMonthlyConversionCap()
  879.     {
  880.         return $this->monthlyConversionCap;
  881.     }
  882.     /**
  883.      * Set lifetimeConversionCap.
  884.      *
  885.      * @param int|null $lifetimeConversionCap
  886.      *
  887.      * @return MmpOffers
  888.      */
  889.     public function setLifetimeConversionCap($lifetimeConversionCap null)
  890.     {
  891.         $this->lifetimeConversionCap $lifetimeConversionCap;
  892.         return $this;
  893.     }
  894.     /**
  895.      * Get lifetimeConversionCap.
  896.      *
  897.      * @return int|null
  898.      */
  899.     public function getLifetimeConversionCap()
  900.     {
  901.         return $this->lifetimeConversionCap;
  902.     }
  903.     /**
  904.      * Set monthlyBudgetGeneratedFromMMPReport.
  905.      *
  906.      * @param string|null $monthlyBudgetGeneratedFromMMPReport
  907.      *
  908.      * @return MmpOffers
  909.      */
  910.     public function setMonthlyBudgetGeneratedFromMMPReport($monthlyBudgetGeneratedFromMMPReport null)
  911.     {
  912.         $this->monthlyBudgetGeneratedFromMMPReport $monthlyBudgetGeneratedFromMMPReport;
  913.         return $this;
  914.     }
  915.     /**
  916.      * Get monthlyBudgetGeneratedFromMMPReport.
  917.      *
  918.      * @return string|null
  919.      */
  920.     public function getMonthlyBudgetGeneratedFromMMPReport()
  921.     {
  922.         return $this->monthlyBudgetGeneratedFromMMPReport;
  923.     }
  924.     public function isIsDeleted(): ?bool
  925.     {
  926.         return $this->isDeleted;
  927.     }
  928.     public function isIsHoOfferMappingEnabled(): ?bool
  929.     {
  930.         return $this->isHoOfferMappingEnabled;
  931.     }
  932.     public function isIsHoAffiliateWhitelistEnabledForEmail(): ?bool
  933.     {
  934.         return $this->isHoAffiliateWhitelistEnabledForEmail;
  935.     }
  936.     public function isEnableCaps(): ?bool
  937.     {
  938.         return $this->enableCaps;
  939.     }
  940.     /**
  941.      * @return Collection<int, AdjustOfferCampaignMapping>
  942.      */
  943.     public function getAdjustOfferCampaignMapping(): Collection
  944.     {
  945.         return $this->adjustOfferCampaignMapping;
  946.     }
  947.     public function addAdjustOfferCampaignMapping(AdjustOfferCampaignMapping $adjustOfferCampaignMapping): self
  948.     {
  949.         if (!$this->adjustOfferCampaignMapping->contains($adjustOfferCampaignMapping)) {
  950.             $this->adjustOfferCampaignMapping[] = $adjustOfferCampaignMapping;
  951.             $adjustOfferCampaignMapping->setMmpOffer($this);
  952.         }
  953.         return $this;
  954.     }
  955.     public function removeAdjustOfferCampaignMapping(AdjustOfferCampaignMapping $adjustOfferCampaignMapping): self
  956.     {
  957.         if ($this->adjustOfferCampaignMapping->removeElement($adjustOfferCampaignMapping)) {
  958.             // set the owning side to null (unless already changed)
  959.             if ($adjustOfferCampaignMapping->getMmpOffer() === $this) {
  960.                 $adjustOfferCampaignMapping->setMmpOffer(null);
  961.             }
  962.         }
  963.         return $this;
  964.     }
  965.     public function getMmpMobileAppsId(): ?int
  966.     {
  967.         return $this->mmpMobileAppsId;
  968.     }
  969.     public function setMmpMobileAppsId(?int $mmpMobileAppsId): self
  970.     {
  971.         $this->mmpMobileAppsId $mmpMobileAppsId;
  972.         return $this;
  973.     }
  974.     public function getIsPrivatePublisherCabinet(): ?bool
  975.     {
  976.         return $this->isPrivatePublisherCabinet;
  977.     }
  978.     public function setIsPrivatePublisherCabinet(?bool $isPrivatePublisherCabinet): self
  979.     {
  980.         $this->isPrivatePublisherCabinet $isPrivatePublisherCabinet;
  981.         return $this;
  982.     }
  983.     /**
  984.      * @return Collection|MmpOfferPublisherMapping[]
  985.      */
  986.     public function getPublisherMappings(): Collection
  987.     {
  988.         return $this->publisherMappings;
  989.     }
  990.     public function addPublisherMapping(MmpOfferPublisherMapping $mapping): self
  991.     {
  992.         if (!$this->publisherMappings->contains($mapping)) {
  993.             $this->publisherMappings[] = $mapping;
  994.             $mapping->setMmpOffer($this);
  995.         }
  996.         return $this;
  997.     }
  998.     public function removePublisherMapping(MmpOfferPublisherMapping $mapping): self
  999.     {
  1000.         if ($this->publisherMappings->removeElement($mapping)) {
  1001.             // set the owning side to null (unless already changed)
  1002.             if ($mapping->getMmpOffer() === $this) {
  1003.                 $mapping->setMmpOffer(null);
  1004.             }
  1005.         }
  1006.         return $this;
  1007.     }
  1008.     /**
  1009.      * Get all allowed affiliate IDs for this offer
  1010.      * @return array
  1011.      */
  1012.     public function getAllowedAffiliateIds(): array
  1013.     {
  1014.         $ids = [];
  1015.         foreach ($this->publisherMappings as $mapping) {
  1016.             if ($mapping->isAllowed()) {
  1017.                 $ids[] = $mapping->getMafoAffiliateId();
  1018.             }
  1019.         }
  1020.         return $ids;
  1021.     }
  1022.     /**
  1023.      * Get all blocked affiliate IDs for this offer
  1024.      * @return array
  1025.      */
  1026.     public function getBlockedAffiliateIds(): array
  1027.     {
  1028.         $ids = [];
  1029.         foreach ($this->publisherMappings as $mapping) {
  1030.             if ($mapping->isBlocked()) {
  1031.                 $ids[] = $mapping->getMafoAffiliateId();
  1032.             }
  1033.         }
  1034.         return $ids;
  1035.     }
  1036. }