src/CmsBundle/Entity/Settings.php line 2343

Open in your IDE?
  1. <?php
  2. namespace App\CmsBundle\Entity;
  3. use Doctrine\Common\Collections\Collection;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Doctrine\Common\Collections\ArrayCollection;
  6. /**
  7.  * Settings
  8.  *
  9.  * @ORM\Table(name="settings", options={"collate"="utf8mb4_unicode_ci", "charset"="utf8mb4"})
  10.  * @ORM\Entity(repositoryClass="App\CmsBundle\Repository\SettingsRepository")
  11.  */
  12. class Settings
  13. {
  14.     /**
  15.      * @var string
  16.      *
  17.      * @ORM\Column(name="label", type="string", length=150, nullable=true)
  18.      */
  19.     private $label;
  20.     /**
  21.      * @var string
  22.      *
  23.      * @ORM\Column(type="string", length=40, nullable=true)
  24.      */
  25.     private $host;
  26.     /**
  27.      * @var string
  28.      *
  29.      * @ORM\Column(type="string", length=30, nullable=true)
  30.      */
  31.     private $override_key;
  32.     /**
  33.      * @var string
  34.      *
  35.      * @ORM\Column(type="string", nullable=true)
  36.      */
  37.     private $site_key;
  38.     /**
  39.      * @var string
  40.      *
  41.      * @ORM\Column(type="string", length=15, nullable=true)
  42.      */
  43.     private $base_uri;
  44.     /**
  45.      * @var string
  46.      *
  47.      * @ORM\Column(name="tagline", type="string", length=150, nullable=true)
  48.      */
  49.     private $tagline;
  50.     /**
  51.      * @var \App\CmsBundle\Entity\Media
  52.      *
  53.      * @ORM\ManyToOne(targetEntity="App\CmsBundle\Entity\Media")
  54.      * @ORM\JoinColumns({
  55.      *   @ORM\JoinColumn(name="logo", referencedColumnName="id", onDelete="SET NULL")
  56.      * })
  57.      */
  58.     private $logo;
  59.     /**
  60.      * @var \App\CmsBundle\Entity\Media
  61.      *
  62.      * @ORM\ManyToOne(targetEntity="App\CmsBundle\Entity\Media")
  63.      * @ORM\JoinColumns({
  64.      *   @ORM\JoinColumn(name="logo_alt", referencedColumnName="id", onDelete="SET NULL")
  65.      * })
  66.      */
  67.     private $logo_alt;
  68.     /**
  69.      * @var \App\CmsBundle\Entity\Media
  70.      *
  71.      * @ORM\ManyToOne(targetEntity="App\CmsBundle\Entity\Media")
  72.      * @ORM\JoinColumns({
  73.      *   @ORM\JoinColumn(name="background", referencedColumnName="id", onDelete="SET NULL")
  74.      * })
  75.      */
  76.     private $background;
  77.     /**
  78.      * @var \App\CmsBundle\Entity\Media
  79.      *
  80.      * @ORM\ManyToOne(targetEntity="App\CmsBundle\Entity\Media")
  81.      * @ORM\JoinColumns({
  82.      *   @ORM\JoinColumn(name="service_background", referencedColumnName="id", onDelete="SET NULL")
  83.      * })
  84.      */
  85.     private $service_background;
  86.     /**
  87.      * @var \App\CmsBundle\Entity\Media
  88.      *
  89.      * @ORM\ManyToOne(targetEntity="App\CmsBundle\Entity\Media")
  90.      * @ORM\JoinColumns({
  91.      *   @ORM\JoinColumn(name="mail_header", referencedColumnName="id", onDelete="SET NULL")
  92.      * })
  93.      */
  94.     private $mail_header;
  95.     /**
  96.      * @var string
  97.      *
  98.      * @ORM\Column(name="admin_email", type="string", length=50, nullable=true)
  99.      */
  100.     private $adminEmail;
  101.     /**
  102.      * @var string
  103.      *
  104.      * @ORM\Column(name="admin_email_from", type="string", length=80, nullable=true)
  105.      */
  106.     private $adminEmailFrom;
  107.     /**
  108.      * @var string
  109.      *
  110.      * @ORM\Column(name="system_email", type="string", length=45, nullable=true)
  111.      */
  112.     private $systemEmail;
  113.     /**
  114.      * @var string
  115.      *
  116.      * @ORM\Column(name="system_email_from", type="string", length=45, nullable=true)
  117.      */
  118.     private $systemEmailFrom;
  119.     /**
  120.      * @var string
  121.      *
  122.      * @ORM\Column(name="maintenance", type="string", nullable=true)
  123.      */
  124.     private $maintenance;
  125.     /**
  126.      * @var string
  127.      *
  128.      * @ORM\Column(name="inline_edit", type="string", nullable=true)
  129.      */
  130.     private $inlineEdit;
  131.     /**
  132.      * @var string
  133.      *
  134.      * @ORM\Column(name="maintenance_message", type="text", nullable=true)
  135.      */
  136.     private $maintenance_message;
  137.     /**
  138.      * @var string
  139.      *
  140.      * @ORM\Column(name="price_include_tax", type="string", nullable=true)
  141.      */
  142.     private $priceIncludeTax;
  143.     /**
  144.      * @var string
  145.      *
  146.      * @ORM\Column(type="string", length=255, nullable=true)
  147.      */
  148.     protected $tinypng_api 'DyWNlDgmWrQ75K6CCMcF91sDvgthtJFM';
  149.     /**
  150.      * @var string
  151.      *
  152.      * @ORM\Column(name="company", type="string", length=150, nullable=true)
  153.      */
  154.     protected $company '';
  155.     /**
  156.      * @var string
  157.      *
  158.      * @ORM\Column(name="phone", type="string", length=30, nullable=true)
  159.      */
  160.     protected $phone '';
  161.     /**
  162.      * @var string
  163.      *
  164.      * @ORM\Column(name="address", type="string", length=255, nullable=true)
  165.      */
  166.     protected $address '';
  167.     /**
  168.      * @var string
  169.      *
  170.      * @ORM\Column(name="postalcode", type="string", length=100, nullable=true)
  171.      */
  172.     protected $postalcode '';
  173.     /**
  174.      * @var string
  175.      *
  176.      * @ORM\Column(name="place", type="string", length=150, nullable=true)
  177.      */
  178.     protected $place '';
  179.     /**
  180.      * @var string
  181.      *
  182.      * @ORM\Column(name="state", type="string", length=100, nullable=true)
  183.      */
  184.     protected $state '';
  185.     /**
  186.      * @var string
  187.      *
  188.      * @ORM\Column(name="country", type="string", length=30, nullable=true)
  189.      */
  190.     protected $country '';
  191.     /**
  192.      * @var integer
  193.      *
  194.      * @ORM\Column(name="kvk", type="integer", length=30, nullable=true)
  195.      */
  196.     protected $kvk null;
  197.     /**
  198.      * @var string
  199.      *
  200.      * @ORM\Column(name="kvk_loc", type="string", length=200, nullable=true)
  201.      */
  202.     protected $kvk_location null;
  203.     /**
  204.      * @var string
  205.      *
  206.      * @ORM\Column(name="tax_no", type="string", length=30, nullable=true)
  207.      */
  208.     protected $taxNo '';
  209.     /**
  210.      * @var string
  211.      *
  212.      * @ORM\Column(type="string", length=30, nullable=true)
  213.      */
  214.     protected $bic '';
  215.     /**
  216.      * @var string
  217.      *
  218.      * @ORM\Column(type="string", length=30, nullable=true)
  219.      */
  220.     protected $iban '';
  221.     /**
  222.      * @var integer
  223.      *
  224.      * @ORM\Column(name="inv_prd", type="integer", length=30, nullable=true)
  225.      */
  226.     protected $invoice_period 0;
  227.     /**
  228.      * @var string
  229.      *
  230.      * @ORM\Column(type="string", length=100, nullable=true)
  231.      */
  232.     private $twitter;
  233.      /**
  234.      * @var text
  235.      *
  236.      * @ORM\Column(type="string", length=255, nullable=true)
  237.      */
  238.     protected $api_postcode_token false;
  239.     /**
  240.      * @var string
  241.      *
  242.      * @ORM\Column(type="string", length=100, nullable=true)
  243.      */
  244.     private $facebook;
  245.     /**
  246.      * @var string
  247.      *
  248.      * @ORM\Column(type="string", length=100, nullable=true)
  249.      */
  250.     private $facebook_pixel;
  251.     /**
  252.      * @var string
  253.      *
  254.      * @ORM\Column(type="string", length=100, nullable=true)
  255.      */
  256.     private $instagram;
  257.     /**
  258.      * @var string
  259.      *
  260.      * @ORM\Column(type="string", length=100, nullable=true)
  261.      */
  262.     private $youtube;
  263.     /**
  264.      * @var string
  265.      *
  266.      * @ORM\Column(type="string", length=100, nullable=true)
  267.      */
  268.     private $linkedin;
  269.     /**
  270.      * @var string
  271.      *
  272.      * @ORM\Column(type="array", nullable=true)
  273.      */
  274.     private $layout_include_js;
  275.     /**
  276.      * @var string
  277.      *
  278.      * @ORM\Column(type="array", nullable=true)
  279.      */
  280.     private $layout_include_css;
  281.     /**
  282.      * @var string
  283.      *
  284.      * @ORM\Column(type="array", nullable=true)
  285.      */
  286.     private $layout_include_font;
  287.     /**
  288.      * @var string
  289.      *
  290.      * @ORM\Column(type="string", length=100, nullable=true)
  291.      */
  292.     private $default_template;
  293.     /**
  294.      * @var integer
  295.      *
  296.      * @ORM\Column(name="id", type="integer", nullable=true)
  297.      * @ORM\Id
  298.      * @ORM\GeneratedValue(strategy="AUTO")
  299.      */
  300.     private $id;
  301.     /**
  302.      * @var string
  303.      *
  304.      * @ORM\Column(type="text", nullable=true)
  305.      */
  306.     protected $restrict_access;
  307.     /**
  308.      * @var string
  309.      *
  310.      * @ORM\Column(type="text", nullable=true)
  311.      */
  312.     protected $restrict_access_deny;
  313.     /**
  314.      * @var string
  315.      *
  316.      * @ORM\Column(type="string", length=255, nullable=true)
  317.      */
  318.     private $restrict_access_type;
  319.     /**
  320.      * @var string
  321.      */
  322.     protected $mollie_api null;
  323.     /**
  324.      * @var string
  325.      *
  326.      * @ORM\Column(type="string", length=50, nullable=true)
  327.      */
  328.     protected $mollie_api_test '';
  329.     /**
  330.      * @var string
  331.      *
  332.      * @ORM\Column(type="string", length=50, nullable=true)
  333.      */
  334.     protected $mollie_api_live '';
  335.     /**
  336.      * @var boolean
  337.      *
  338.      * @ORM\Column(type="boolean", nullable=true)
  339.      */
  340.     protected $mollie_live false;
  341.     /**
  342.      * @var boolean
  343.      *
  344.      * @ORM\Column(type="boolean", nullable=true)
  345.      */
  346.     protected $mollie_enabled false;
  347.     /**
  348.      * @var boolean
  349.      *
  350.      * @ORM\Column(name="mollie_sub", type="boolean", nullable=true)
  351.      */
  352.     protected $mollie_subscription false;
  353.     /**
  354.      * @var string
  355.      *
  356.      * @ORM\Column(type="string", length=100, nullable=true)
  357.      */
  358.     protected $buckaroo_website_key '';
  359.     /**
  360.      * @var string
  361.      *
  362.      * @ORM\Column(type="string", length=100, nullable=true)
  363.      */
  364.     protected $buckaroo_secret '';
  365.     /**
  366.      * @var boolean
  367.      *
  368.      * @ORM\Column(type="boolean", nullable=true)
  369.      */
  370.     protected $buckaroo_live false;
  371.     /**
  372.      * @var boolean
  373.      *
  374.      * @ORM\Column(type="boolean", nullable=true)
  375.      */
  376.     protected $buckaroo_enabled false;
  377.     /**
  378.      * @var string
  379.      */
  380.     protected $rabosmartpay_api null;
  381.     /**
  382.      * @var string
  383.      *
  384.      * @ORM\Column(type="string", length=600, nullable=true)
  385.      */
  386.     protected $rabosmartpay_api_refresh_token_live '';
  387.     /**
  388.      * @var string
  389.      *
  390.      * @ORM\Column(type="string", length=600, nullable=true)
  391.      */
  392.     protected $rabosmartpay_api_signing_token_live '';
  393.     /**
  394.      * @var string
  395.      *
  396.      * @ORM\Column(type="string", length=600, nullable=true)
  397.      */
  398.     protected $rabosmartpay_api_refresh_token_test '';
  399.     /**
  400.      * @var string
  401.      *
  402.      * @ORM\Column(type="string", length=600, nullable=true)
  403.      */
  404.     protected $rabosmartpay_api_signing_token_test '';
  405.     /**
  406.      * @var boolean
  407.      *
  408.      * @ORM\Column(type="boolean", nullable=true)
  409.      */
  410.     protected $rabosmartpay_live false;
  411.     /**
  412.      * @var boolean
  413.      *
  414.      * @ORM\Column(type="boolean", nullable=true)
  415.      */
  416.     protected $rabosmartpay_enabled false;
  417.     /**
  418.      * @var boolean
  419.      *
  420.      * @ORM\Column(name="rabosmartpay_sub", type="boolean", nullable=true)
  421.      */
  422.     protected $rabosmartpay_subscription false;
  423.     /**
  424.      * @var string
  425.      *
  426.      * @ORM\Column(type="string", length=100, nullable=true)
  427.      */
  428.     protected $multisafepay_api '';
  429.     /**
  430.      * @var string
  431.      *
  432.      * @ORM\Column(type="string", length=100, nullable=true)
  433.      */
  434.     protected $multisafepay_api_test '';
  435.     /**
  436.      * @var boolean
  437.      *
  438.      * @ORM\Column(type="boolean", nullable=true)
  439.      */
  440.     protected $multisafepay_live false;
  441.     /**
  442.      * @var boolean
  443.      *
  444.      * @ORM\Column(type="boolean", nullable=true)
  445.      */
  446.     protected $multisafepay_enabled false;
  447.     /**
  448.      * @var boolean
  449.      *
  450.      * @ORM\Column(type="boolean", nullable=true)
  451.      */
  452.     protected $omnikassa_live false;
  453.     /**
  454.      * @var boolean
  455.      *
  456.      * @ORM\Column(type="boolean", nullable=true)
  457.      */
  458.     protected $omnikassa_enabled false;
  459.     /**
  460.      * @var string
  461.      *
  462.      * @ORM\Column(type="text", nullable=true)
  463.      */
  464.     protected $omnikassa_sign '';
  465.     /**
  466.      * @var string
  467.      *
  468.      * @ORM\Column(type="text", nullable=true)
  469.      */
  470.     protected $omnikassa_refresh '';
  471.     /**
  472.      * @var string
  473.      *
  474.      * @ORM\Column(type="text", nullable=true)
  475.      */
  476.     protected $omnikassa_sign_test '';
  477.     /**
  478.      * @var string
  479.      *
  480.      * @ORM\Column(type="text", nullable=true)
  481.      */
  482.     protected $omnikassa_refresh_test '';
  483.     /**
  484.      * @var string
  485.      */
  486.     protected $pay_api null;
  487.     /**
  488.      * @var string
  489.      *
  490.      * @ORM\Column(type="string", length=100, nullable=true)
  491.      */
  492.     protected $pay_service_id '';
  493.     /**
  494.      * @var string
  495.      *
  496.      * @ORM\Column(type="string", length=100, nullable=true)
  497.      */
  498.     protected $pay_api_test '';
  499.     /**
  500.      * @var string
  501.      *
  502.      * @ORM\Column(type="string", length=100, nullable=true)
  503.      */
  504.     protected $pay_api_live '';
  505.     /**
  506.      * @var boolean
  507.      *
  508.      * @ORM\Column(type="boolean", nullable=true)
  509.      */
  510.     protected $pay_live false;
  511.     /**
  512.      * @var boolean
  513.      *
  514.      * @ORM\Column(type="boolean", nullable=true)
  515.      */
  516.     protected $pay_enabled false;
  517.     /**
  518.      * @var string
  519.      *
  520.      * @ORM\Column(type="string", length=100, nullable=true)
  521.      */
  522.     protected $google_ua '';
  523.     /**
  524.      * @var string
  525.      *
  526.      * @ORM\Column(type="string", length=100, nullable=true)
  527.      */
  528.     protected $google_gtm '';
  529.     /**
  530.      * @var string
  531.      *
  532.      * @ORM\Column(type="string", length=100, nullable=true)
  533.      */
  534.     protected $google_g '';
  535.     /**
  536.      * @var string
  537.      *
  538.      * @ORM\Column(type="string", length=100, nullable=true)
  539.      */
  540.     protected $google_cc '';
  541.     /**
  542.      * @var integer
  543.      *
  544.      * @ORM\Column(name="captcha_treshold", type="integer", length=3, nullable=true)
  545.      */
  546.     protected $captcha_treshold 50;
  547.     /**
  548.      * @var string
  549.      *
  550.      * @ORM\Column(type="string", length=150, nullable=true)
  551.      */
  552.     protected $piwik_url '';
  553.     /**
  554.      * @var string
  555.      *
  556.      * @ORM\Column(type="string", length=50, nullable=true)
  557.      */
  558.     protected $piwik_api_hash '';
  559.     /**
  560.      * @var integer
  561.      *
  562.      * @ORM\Column(type="integer", length=5, nullable=true)
  563.      */
  564.     protected $piwik_site_id 1;
  565.     /**
  566.      * @var string
  567.      *
  568.      * @ORM\Column(type="string", length=250, nullable=true)
  569.      */
  570.     protected $piwik_container_hashs '';
  571.     /**
  572.      * @var boolean
  573.      *
  574.      * @ORM\Column(type="boolean", nullable=true)
  575.      */
  576.     protected $birthday_fields false;
  577.     /**
  578.      * @var boolean
  579.      *
  580.      * @ORM\Column(type="boolean", nullable=true)
  581.      */
  582.     protected $cache_invalidated false;
  583.     /**
  584.      * @var boolean
  585.      *
  586.      * @ORM\Column(type="boolean", nullable=true)
  587.      */
  588.     protected $custom_navigation false;
  589.     /**
  590.      * @var text
  591.      *
  592.      * @ORM\Column(type="text", nullable=true)
  593.      */
  594.     protected $footer_block_1 '';
  595.     /**
  596.      * @var text
  597.      *
  598.      * @ORM\Column(type="text", nullable=true)
  599.      */
  600.     protected $footer_block_2 '';
  601.     /**
  602.      * @var text
  603.      *
  604.      * @ORM\Column(type="text", nullable=true)
  605.      */
  606.     protected $footer_block_3 '';
  607.     /**
  608.      * @var text
  609.      *
  610.      * @ORM\Column(type="text", nullable=true)
  611.      */
  612.     protected $footer_block_4 '';
  613.     /**
  614.      * @var text
  615.      *
  616.      * @ORM\Column(type="text", nullable=true)
  617.      */
  618.     protected $footer_block_5 '';
  619.     /**
  620.      * @var boolean
  621.      *
  622.      * @ORM\Column(type="boolean", nullable=true)
  623.      */
  624.     protected $header_bar false;
  625.     /**
  626.      * @var text
  627.      *
  628.      * @ORM\Column(type="text", nullable=true)
  629.      */
  630.     protected $header_bar_left '';
  631.     /**
  632.      * @var text
  633.      *
  634.      * @ORM\Column(type="text", nullable=true)
  635.      */
  636.     protected $header_bar_right '';
  637.     /**
  638.      * @var boolean
  639.      *
  640.      * @ORM\Column(type="boolean", nullable=true)
  641.      */
  642.     protected $postnl_checker false;
  643.     /**
  644.      * @var text
  645.      *
  646.      * @ORM\Column(type="string", length=255, nullable=true)
  647.      */
  648.     protected $postnl_key false;
  649.     /**
  650.      * @var text
  651.      *
  652.      * @ORM\Column(type="string", length=255, nullable=true)
  653.      */
  654.     protected $postnl_secret_key false;
  655.     /**
  656.      * @var text
  657.      *
  658.      * @ORM\Column(type="text", nullable=true)
  659.      */
  660.     protected $uptime_robot_key '';
  661.     /**
  662.      * @ORM\ManyToOne(targetEntity="Language", inversedBy="settings")
  663.      * @ORM\JoinColumn(name="language_id", referencedColumnName="id", onDelete="CASCADE")
  664.      */
  665.     private $language;
  666.     /**
  667.      * @ORM\ManyToOne(targetEntity="Settings", inversedBy="linked")
  668.      * @ORM\JoinColumn(referencedColumnName="id", onDelete="CASCADE")
  669.      */
  670.     private $parent;
  671.     /**
  672.      * @ORM\OneToMany(targetEntity="Settings", mappedBy="parent")
  673.      */
  674.     protected $linked;
  675.     /**
  676.      * @var boolean
  677.      *
  678.      * @ORM\Column(type="boolean", nullable=true)
  679.      */
  680.     protected $snow false;
  681.     /**
  682.      * @var boolean
  683.      *
  684.      * @ORM\Column(type="boolean", nullable=true)
  685.      */
  686.     protected $force_https false;
  687.     /**
  688.      * @var boolean
  689.      *
  690.      * @ORM\Column(type="boolean", nullable=true)
  691.      */
  692.     protected $test false;
  693.     /**
  694.      * @var string
  695.      *
  696.      * @ORM\Column(type="string", nullable=true)
  697.      */
  698.     protected $max_media_size '2M';
  699.     /**
  700.      * @var array
  701.      *
  702.      * @ORM\Column(type="array", nullable=false)
  703.      */
  704.     private $media_dimensions = [
  705.         'full' => '1920',
  706.         'large' => '900',
  707.         'medium' => '600',
  708.         'small' => '350',
  709.         'thumb' => '150',
  710.     ];
  711.     /**
  712.      * @var boolean
  713.      *
  714.      * @ORM\Column(type="boolean", nullable=true)
  715.      */
  716.     protected $cookiebar false;
  717.     /**
  718.      * @var boolean
  719.      *
  720.      * @ORM\Column(type="boolean", nullable=true)
  721.      */
  722.     protected $cookiebar_button true;
  723.     /**
  724.      * @var string
  725.      *
  726.      * @ORM\Column(type="string", length=30, nullable=true)
  727.      */
  728.     protected $cookiebar_button_position 'bottom';
  729.     /**
  730.      * @var string
  731.      *
  732.      * @ORM\Column(type="integer", length=30, nullable=true)
  733.      */
  734.     protected $cookiebar_button_offset 20;
  735.     /**
  736.      * @var boolean
  737.      *
  738.      * @ORM\Column(type="boolean", nullable=true)
  739.      */
  740.     protected $cache_cdn false;
  741.     /**
  742.      * @var string
  743.      *
  744.      * @ORM\Column(type="string", length=30, nullable=true)
  745.      */
  746.     protected $robots '';
  747.     /**
  748.      * @var string
  749.      *
  750.      * @ORM\Column(type="string", length=100, nullable=true)
  751.      */
  752.     private $app_label '';
  753.     /**
  754.      * @var string
  755.      *
  756.      * @ORM\Column(type="string", length=100, nullable=true)
  757.      */
  758.     private $ios_app_id '';
  759.     /**
  760.      * @var string
  761.      *
  762.      * @ORM\Column(type="string", length=200, nullable=true)
  763.      */
  764.     private $android_app_id '';
  765.     /**
  766.      * @var \App\CmsBundle\Entity\Media
  767.      *
  768.      * @ORM\ManyToOne(targetEntity="App\CmsBundle\Entity\Media")
  769.      * @ORM\JoinColumns({
  770.      *   @ORM\JoinColumn(name="app_icon", referencedColumnName="id", onDelete="SET NULL")
  771.      * })
  772.      */
  773.     private $app_icon;
  774.     /**
  775.      * @var string
  776.      *
  777.      * @ORM\Column(type="string", length=255, nullable=true)
  778.      */
  779.     private $cc_auth_key '';
  780.     /**
  781.      * @var \DateTime
  782.      *
  783.      * @ORM\Column(type="datetime", nullable=true)
  784.      */
  785.     private $cc_expires;
  786.     /**
  787.      * @var boolean
  788.      *
  789.      * @ORM\Column(type="boolean", nullable=true)
  790.      */
  791.     private $cc_enabled false;
  792.     /**
  793.      * @var string
  794.      *
  795.      * @ORM\Column(type="string", length=50, nullable=true)
  796.      */
  797.     private $cc_notify_email '';
  798.     /**
  799.      * @var string
  800.      *
  801.      * @ORM\Column(type="string", length=100, nullable=true)
  802.      */
  803.     private $google_recaptcha_sitekey null;
  804.     /**
  805.      * @var string
  806.      *
  807.      * @ORM\Column(type="string", length=100, nullable=true)
  808.      */
  809.     private $google_recaptcha_secret null;
  810.     /**
  811.      * @var string
  812.      *
  813.      * @ORM\Column(type="string", length=100, nullable=true)
  814.      */
  815.     private $google_recaptcha_text '';
  816.     /**
  817.      * @var string
  818.      *
  819.      * @ORM\Column(type="string", length=50, nullable=true)
  820.      */
  821.     private $google_recaptcha_mode '2_checkbox';
  822.     /**
  823.      * @var string
  824.      *
  825.      * @ORM\Column(type="text", nullable=true)
  826.      */
  827.     private $mail_footer;
  828.     /**
  829.      * @var string
  830.      *
  831.      * @ORM\Column(type="text", nullable=true)
  832.      */
  833.     private $errorNotFound '';
  834.     /**
  835.      * @var string
  836.      *
  837.      * @ORM\Column(type="text", nullable=true)
  838.      */
  839.     private $errorNoAccess '';
  840.     /**
  841.      * @var string
  842.      *
  843.      * @ORM\Column(type="text", nullable=true)
  844.      */
  845.     private $errorSystem '';
  846.     /**
  847.      * @var string
  848.      *
  849.      * @ORM\Column(type="text", nullable=true)
  850.      */
  851.     private $avg_cookie '';
  852.     /**
  853.      * @var string
  854.      *
  855.      * @ORM\Column(type="text", nullable=true)
  856.      */
  857.     private $avg_disclaimer '';
  858.     /**
  859.      * @var string
  860.      *
  861.      * @ORM\Column(type="text", nullable=true)
  862.      */
  863.     private $avg_privacy '';
  864.     /**
  865.      * @var string
  866.      *
  867.      * @ORM\Column(type="string", length=100, nullable=true)
  868.      */
  869.     protected $sisow_merchant_id '';
  870.     /**
  871.      * @var string
  872.      *
  873.      * @ORM\Column(type="string", length=100, nullable=true)
  874.      */
  875.     protected $sisow_merchant_key '';
  876.     /**
  877.      * @var string
  878.      *
  879.      * @ORM\Column(type="string", length=50, nullable=true)
  880.      */
  881.     protected $sisow_shop_id '';
  882.     /**
  883.      * @var string
  884.      *
  885.      * @ORM\Column(type="json_array", length=255, nullable=true)
  886.      */
  887.     protected $sisow_options = [];
  888.     /**
  889.      * @var boolean
  890.      *
  891.      * @ORM\Column(type="boolean", nullable=true)
  892.      */
  893.     protected $sisow_live false;
  894.     /**
  895.      * @var boolean
  896.      *
  897.      * @ORM\Column(type="boolean", nullable=true)
  898.      */
  899.     protected $sisow_enabled false;
  900.     /**
  901.      * @var string
  902.      *
  903.      * @ORM\Column(type="string", length=50, nullable=true)
  904.      */
  905.     protected $paypro_key '';
  906.     /**
  907.      * @var boolean
  908.      *
  909.      * @ORM\Column(type="boolean", nullable=true)
  910.      */
  911.     protected $paypro_live false;
  912.     /**
  913.      * @var boolean
  914.      *
  915.      * @ORM\Column(type="boolean", nullable=true)
  916.      */
  917.     protected $paypro_enabled false;
  918.     /**
  919.      * @var boolean
  920.      *
  921.      * @ORM\Column(name="paypro_sub", type="boolean", nullable=true)
  922.      */
  923.     protected $paypro_subscription false;
  924.     /**
  925.      * @ORM\OneToMany(targetEntity="Mediadir", mappedBy="settings")
  926.      */
  927.     protected $mediadirs;
  928.     /**
  929.      * @ORM\OneToMany(targetEntity="Page", mappedBy="settings")
  930.      */
  931.     protected $pages;
  932.     /**
  933.      * @ORM\OneToMany(targetEntity="Navigation", mappedBy="settings")
  934.      */
  935.     protected $navigations;
  936.     /**
  937.      * @ORM\OneToMany(targetEntity="User", mappedBy="settings")
  938.      */
  939.     protected $users;
  940.     /**
  941.      * @var boolean
  942.      *
  943.      * @ORM\Column(type="boolean", nullable=true)
  944.      */
  945.     protected $calendar false;
  946.     /**
  947.      * @var string
  948.      *
  949.      * @ORM\Column(type="json_array", nullable=true)
  950.      */
  951.     private $visible_bundles = [];
  952.     /**
  953.      * @ORM\ManyToMany(targetEntity="User", mappedBy="sites")
  954.      */
  955.     protected $user_access;
  956.     /**
  957.      * @ORM\Column(type="boolean", nullable=true)
  958.      */
  959.     protected $ignore_cms_blocks false;
  960.     /**
  961.      * @var boolean
  962.      *
  963.      * @ORM\Column(name="enbl_reg", type="boolean", nullable=true)
  964.      */
  965.     protected $allow_registration true;
  966.     /**
  967.      * @var boolean
  968.      *
  969.      * @ORM\Column(name="mod_reg", type="boolean", nullable=true)
  970.      */
  971.     protected $moderate_registration false;
  972.     /**
  973.      * @ORM\OneToOne(targetEntity="Integrations", mappedBy="settings")
  974.      */
  975.     protected $integrations;
  976.     /**
  977.      * @var string
  978.      *
  979.      * @ORM\Column(type="string", length=150, nullable=true)
  980.      */
  981.     protected $favicon_location;
  982.     /**
  983.      * @var string
  984.      *
  985.      * @ORM\Column(type="string", length=150, nullable=true)
  986.      */
  987.     protected $author;
  988.     /**
  989.      * @var string
  990.      *
  991.      * @ORM\Column(type="string", length=150, nullable=true)
  992.      */
  993.     protected $apple_touch_icon;
  994.     /**
  995.      * @var string
  996.      *
  997.      * @ORM\Column(type="string", length=150, nullable=true)
  998.      */
  999.     protected $og_site_name;
  1000.     /**
  1001.      * @var string
  1002.      *
  1003.      * @ORM\Column(type="string", length=100, nullable=true)
  1004.      */
  1005.     protected $face_domain_key;
  1006.     /**
  1007.      * @ORM\Column(type="json", nullable=true)
  1008.      */
  1009.     private $color_swap = [];
  1010.     /**
  1011.      * @ORM\Column(type="string", length=255, nullable=true)
  1012.      */
  1013.     private $meta_pixel_id;
  1014.     /**
  1015.      * @ORM\Column(type="string", length=255, nullable=true)
  1016.      */
  1017.     private $meta_api_token;
  1018.     /**
  1019.      * @var \DateTime
  1020.      *
  1021.      * @ORM\Column(type="datetime", nullable=true)
  1022.      */
  1023.     private $ooo_start;
  1024.     /**
  1025.      * @var \DateTime
  1026.      *
  1027.      * @ORM\Column(type="datetime", nullable=true)
  1028.      */
  1029.     private $ooo_end;
  1030.     /**
  1031.      * @var string
  1032.      *
  1033.      * @ORM\Column(type="text", nullable=true)
  1034.      */
  1035.     private $ooo_msg '';
  1036.     /**
  1037.      * @var boolean
  1038.      *
  1039.      * @ORM\Column(type="boolean", nullable=true)
  1040.      */
  1041.     private $ooo_enbl false;
  1042.     /**
  1043.      * @var boolean
  1044.      *
  1045.      * @ORM\Column(name="lef_api_active", type="boolean", nullable=true)
  1046.      */
  1047.     protected $lef_api_active false;
  1048.     /**
  1049.      * @var boolean
  1050.      *
  1051.      * @ORM\Column(name="lef_api_live", type="boolean", nullable=true)
  1052.      */
  1053.     protected $lef_api_live false;
  1054.     
  1055.     /**
  1056.      * @var string
  1057.      *
  1058.      * @ORM\Column(name="lef_api_test_url", length="255", nullable=true)
  1059.      */
  1060.     protected $lef_api_test_url;
  1061.     
  1062.     /**
  1063.      * @var string
  1064.      *
  1065.      * @ORM\Column(name="lef_api_live_url", length="255", nullable=true)
  1066.      */
  1067.     protected $lef_api_live_url;
  1068.     /**
  1069.      * @var string
  1070.      *
  1071.      * @ORM\Column(name="lef_user_name", length="100", nullable=true)
  1072.      */
  1073.     protected $lef_user_name;
  1074.     /**
  1075.      * @var string
  1076.      *
  1077.      * @ORM\Column(name="lef_password", length="100", nullable=true)
  1078.      */
  1079.     protected $lef_password;
  1080.     /**
  1081.      * @var boolean
  1082.      *
  1083.      * @ORM\Column(name="lef_occasion_request", type="boolean", nullable=true)
  1084.      */
  1085.     protected $lef_occasion_request false;
  1086.     /**
  1087.      * @var boolean
  1088.      *
  1089.      * @ORM\Column(name="lef_finance_occassion_request", type="boolean", nullable=true)
  1090.      */
  1091.     protected $lef_finance_occassion_request false;
  1092.     /**
  1093.      * @var boolean
  1094.      *
  1095.      * @ORM\Column(name="lef_forms_request", type="boolean", nullable=true)
  1096.      */
  1097.     protected $lef_forms_request false;
  1098.     /**
  1099.      * @var boolean
  1100.      *
  1101.      * @ORM\Column(name="lef_privatelease_request", type="boolean", nullable=true)
  1102.      */
  1103.     protected $lef_privatelease_request false;
  1104.     /**
  1105.      * @var boolean
  1106.      *
  1107.      * @ORM\Column(name="lef_offer_request", type="boolean", nullable=true)
  1108.      */
  1109.     protected $lef_offer_request false;
  1110.     /**
  1111.      * @var boolean
  1112.      *
  1113.      * @ORM\Column(name="lef_testdrive_request", type="boolean", nullable=true)
  1114.      */
  1115.     protected $lef_testdrive_request false;
  1116.     /**
  1117.      * @var boolean
  1118.      *
  1119.      * @ORM\Column(name="Hummessenger_api_enababled", type="boolean", nullable=true)
  1120.      */
  1121.     protected $Hummessenger_api_enabled false;
  1122.     /**
  1123.      * @var string
  1124.      *
  1125.      * @ORM\Column(name="Hummessenger_api_url", length=100, nullable=true)
  1126.      */
  1127.     protected $Hummessenger_api_url "";
  1128.     /**
  1129.      * @var string
  1130.      *
  1131.      * @ORM\Column(name="Hummessenger_api_key", length=100, nullable=true)
  1132.      */
  1133.     protected $Hummessenger_api_key "";
  1134.     
  1135.     /**
  1136.      * @ORM\Column(type="boolean", nullable=true)
  1137.      */
  1138.     protected $is_catalog false;
  1139.     /**
  1140.      * @ORM\Column(type="string", length=255, nullable=true)
  1141.      */
  1142.     private $openai_key;
  1143.     /**
  1144.      * @ORM\Column(type="string", length=50, nullable=true)
  1145.      */
  1146.     private $openai_model;
  1147.     /**
  1148.      * @ORM\Column(type="float", nullable=true)
  1149.      */
  1150.     private $openai_temp;
  1151.     /**
  1152.      * @ORM\Column(type="string", length=255, nullable=true)
  1153.      */
  1154.     private $openai_startprompt;
  1155.     /**
  1156.      * Set label
  1157.      *
  1158.      * @param string $label
  1159.      * @return Settings
  1160.      */
  1161.     public function setLabel($label)
  1162.     {
  1163.         $this->label $label;
  1164.         return $this;
  1165.     }
  1166.     /**
  1167.      * Get label
  1168.      *
  1169.      * @return string
  1170.      */
  1171.     public function getLabel()
  1172.     {
  1173.         return $this->label;
  1174.     }
  1175.     /**
  1176.      * Get label (display)
  1177.      *
  1178.      * @return string
  1179.      */
  1180.     public function getLabelDisplay()
  1181.     {
  1182.         return $this->label ' | ' $this->language->getLabel();
  1183.     }
  1184.     /**
  1185.      * Set adminEmail
  1186.      *
  1187.      * @param string $adminEmail
  1188.      * @return Settings
  1189.      */
  1190.     public function setAdminEmail($adminEmail)
  1191.     {
  1192.         $this->adminEmail $adminEmail;
  1193.         return $this;
  1194.     }
  1195.     /**
  1196.      * Get adminEmail
  1197.      *
  1198.      * @return string
  1199.      */
  1200.     public function getAdminEmail()
  1201.     {
  1202.         return $this->adminEmail;
  1203.     }
  1204.     /**
  1205.      * Set adminEmailFrom
  1206.      *
  1207.      * @param string $adminEmailFrom
  1208.      * @return Settings
  1209.      */
  1210.     public function setAdminEmailFrom($adminEmailFrom)
  1211.     {
  1212.         $this->adminEmailFrom $adminEmailFrom;
  1213.         return $this;
  1214.     }
  1215.     /**
  1216.      * Get adminEmailFrom
  1217.      *
  1218.      * @return string
  1219.      */
  1220.     public function getAdminEmailFrom()
  1221.     {
  1222.         return $this->adminEmailFrom;
  1223.     }
  1224.     /**
  1225.      * Set systemEmail
  1226.      *
  1227.      * @param string $systemEmail
  1228.      * @return Settings
  1229.      */
  1230.     public function setSystemEmail($systemEmail)
  1231.     {
  1232.         $this->systemEmail $systemEmail;
  1233.         return $this;
  1234.     }
  1235.     /**
  1236.      * Get systemEmail
  1237.      *
  1238.      * @return string
  1239.      */
  1240.     public function getSystemEmail()
  1241.     {
  1242.         return $this->systemEmail;
  1243.     }
  1244.     /**
  1245.      * Set systemEmailFrom
  1246.      *
  1247.      * @param string $systemEmailFrom
  1248.      * @return Settings
  1249.      */
  1250.     public function setSystemEmailFrom($systemEmailFrom)
  1251.     {
  1252.         $this->systemEmailFrom $systemEmailFrom;
  1253.         return $this;
  1254.     }
  1255.     /**
  1256.      * Get systemEmailFrom
  1257.      *
  1258.      * @return string
  1259.      */
  1260.     public function getSystemEmailFrom()
  1261.     {
  1262.         return $this->systemEmailFrom;
  1263.     }
  1264.     /**
  1265.      * Set maintenance
  1266.      *
  1267.      * @param string $maintenance
  1268.      * @return Settings
  1269.      */
  1270.     public function setMaintenance($maintenance)
  1271.     {
  1272.         $this->maintenance $maintenance;
  1273.         return $this;
  1274.     }
  1275.     /**
  1276.      * Get maintenance
  1277.      *
  1278.      * @return string
  1279.      */
  1280.     public function getMaintenance()
  1281.     {
  1282.         return (bool)$this->maintenance;
  1283.     }
  1284.     /**
  1285.      * Set inlineEdit
  1286.      *
  1287.      * @param string $inlineEdit
  1288.      * @return Settings
  1289.      */
  1290.     public function setInlineEdit($inlineEdit)
  1291.     {
  1292.         $this->inlineEdit $inlineEdit;
  1293.         return $this;
  1294.     }
  1295.     /**
  1296.      * Get inlineEdit
  1297.      *
  1298.      * @return string
  1299.      */
  1300.     public function getInlineEdit()
  1301.     {
  1302.         return (bool)$this->inlineEdit;
  1303.     }
  1304.     /**
  1305.      * Set priceIncludeTax
  1306.      *
  1307.      * @param string $priceIncludeTax
  1308.      * @return Settings
  1309.      */
  1310.     public function setPriceIncludeTax($priceIncludeTax)
  1311.     {
  1312.         $this->priceIncludeTax $priceIncludeTax;
  1313.         return $this;
  1314.     }
  1315.     /**
  1316.      * Get priceIncludeTax
  1317.      *
  1318.      * @return string
  1319.      */
  1320.     public function getPriceIncludeTax()
  1321.     {
  1322.         return (bool)$this->priceIncludeTax;
  1323.     }
  1324.     /**
  1325.      * Set id
  1326.      *
  1327.      * @param integer $id
  1328.      * @return Settings
  1329.      */
  1330.     public function setId($id)
  1331.     {
  1332.         $this->id $id;
  1333.         return $this;
  1334.     }
  1335.     /**
  1336.      * Get id
  1337.      *
  1338.      * @return integer
  1339.      */
  1340.     public function getId()
  1341.     {
  1342.         return $this->id;
  1343.     }
  1344.     /**
  1345.      * Set logo
  1346.      *
  1347.      * @param \App\CmsBundle\Entity\Media $logo
  1348.      *
  1349.      * @return Settings
  1350.      */
  1351.     public function setLogo(\App\CmsBundle\Entity\Media $logo null)
  1352.     {
  1353.         $this->logo $logo;
  1354.         return $this;
  1355.     }
  1356.     /**
  1357.      * Get logo
  1358.      *
  1359.      * @return \App\CmsBundle\Entity\Media
  1360.      */
  1361.     public function getLogo($fallback true)
  1362.     {
  1363.         if($this->hasLogo()){
  1364.             return '/' $this->logo->getWebPath();
  1365.         }else{
  1366.             if($fallback){
  1367.                 return '/bundles/cms/images/logo.svg';
  1368.             }
  1369.         }
  1370.         return null;
  1371.     }
  1372.     /**
  1373.      * Get logo object
  1374.      *
  1375.      * @return \App\CmsBundle\Entity\Media
  1376.      */
  1377.     public function getLogoObject()
  1378.     {
  1379.         if($this->hasLogo()){
  1380.             return $this->logo;
  1381.         }
  1382.         return null;
  1383.     }
  1384.     /**
  1385.      * Has logo
  1386.      *
  1387.      * @return boolean
  1388.      */
  1389.     public function hasLogo()
  1390.     {
  1391.         return !empty($this->logo);
  1392.     }
  1393.     
  1394.     /**
  1395.      * Has Postcode NL Checker
  1396.      *
  1397.      * @return boolean
  1398.      */
  1399.     public function hasPostnlChecker()
  1400.     {
  1401.         return !empty($this->postnl_checker);
  1402.     }
  1403.     
  1404.     /**
  1405.      * Set postNlChecker
  1406.      *
  1407.      * @param boolean $postNlChecker
  1408.      *
  1409.      * @return boolean
  1410.      */
  1411.     public function setPostNlChecker($postNlChecker)
  1412.     {
  1413.         $this->postnl_checker $postNlChecker;
  1414.         return $this;
  1415.     }
  1416.     /**
  1417.      * Get postNlChecker
  1418.      *
  1419.      * @return boolean
  1420.      */
  1421.     public function getPostNlChecker()
  1422.     {
  1423.         return $this->postnl_checker;
  1424.     }
  1425.     
  1426.     /**
  1427.      * Has Postcode NL Key
  1428.      *
  1429.      * @return text
  1430.      */
  1431.     public function getPostnlKey()
  1432.     {
  1433.         return $this->postnl_key;
  1434.     }
  1435.     
  1436.     /**
  1437.      * Set postNlKey
  1438.      *
  1439.      * @param boolean $postNlKey
  1440.      *
  1441.      * @return text
  1442.      */
  1443.     public function setPostnlKey($postNlKey)
  1444.     {
  1445.         $this->postnl_key $postNlKey;
  1446.         return $this;
  1447.     }
  1448.     
  1449.     /**
  1450.      * Has Postcode NL Secret Key
  1451.      *
  1452.      * @return text
  1453.      */
  1454.     public function getPostnlSecretKey()
  1455.     {
  1456.         return $this->postnl_secret_key;
  1457.     }
  1458.     
  1459.     /**
  1460.      * Set postNlSecretKey
  1461.      *
  1462.      * @param boolean $postNlSecretKey
  1463.      *
  1464.      * @return text
  1465.      */
  1466.     public function setPostnlSecretKey($postNlSecretKey)
  1467.     {
  1468.         $this->postnl_secret_key $postNlSecretKey;
  1469.         return $this;
  1470.     }
  1471.     /**
  1472.      * Set background
  1473.      *
  1474.      * @param \App\CmsBundle\Entity\Media $background
  1475.      *
  1476.      * @return Settings
  1477.      */
  1478.     public function setBackground(\App\CmsBundle\Entity\Media $background null)
  1479.     {
  1480.         $this->background $background;
  1481.         return $this;
  1482.     }
  1483.     /**
  1484.      * Get background
  1485.      *
  1486.      * @return \App\CmsBundle\Entity\Media
  1487.      */
  1488.     public function getBackground()
  1489.     {
  1490.         if($this->hasBackground()){
  1491.             return '/' $this->background->getWebPath();
  1492.         }else{
  1493.             return '/bundles/cms/images/background.jpg';
  1494.         }
  1495.     }
  1496.     /**
  1497.      * Get background object
  1498.      *
  1499.      * @return \App\CmsBundle\Entity\Media
  1500.      */
  1501.     public function getBackgroundObject()
  1502.     {
  1503.         if($this->hasBackground()){
  1504.             return $this->background;
  1505.         }
  1506.         return null;
  1507.     }
  1508.     /**
  1509.      * Has background
  1510.      *
  1511.      * @return boolean
  1512.      */
  1513.     public function hasBackground()
  1514.     {
  1515.         return !empty($this->background);
  1516.     }
  1517.     /**
  1518.      * Set maintenanceMessage
  1519.      *
  1520.      * @param string $maintenanceMessage
  1521.      *
  1522.      * @return Settings
  1523.      */
  1524.     public function setMaintenanceMessage($maintenanceMessage)
  1525.     {
  1526.         $this->maintenance_message $maintenanceMessage;
  1527.         return $this;
  1528.     }
  1529.     /**
  1530.      * Get maintenanceMessage
  1531.      *
  1532.      * @return string
  1533.      */
  1534.     public function getMaintenanceMessage()
  1535.     {
  1536.         return $this->maintenance_message;
  1537.     }
  1538.     /**
  1539.      * Set twitter
  1540.      *
  1541.      * @param string $twitter
  1542.      *
  1543.      * @return Settings
  1544.      */
  1545.     public function setTwitter($twitter)
  1546.     {
  1547.         $this->twitter $twitter;
  1548.         return $this;
  1549.     }
  1550.     /**
  1551.      * Get twitter
  1552.      *
  1553.      * @return string
  1554.      */
  1555.     public function getTwitter()
  1556.     {
  1557.         return $this->twitter;
  1558.     }
  1559.     /**
  1560.      * Set facebook
  1561.      *
  1562.      * @param string $facebook
  1563.      *
  1564.      * @return Settings
  1565.      */
  1566.     public function setFacebook($facebook)
  1567.     {
  1568.         $this->facebook $facebook;
  1569.         return $this;
  1570.     }
  1571.     /**
  1572.      * Get facebook
  1573.      *
  1574.      * @return string
  1575.      */
  1576.     public function getFacebook()
  1577.     {
  1578.         return $this->facebook;
  1579.     }
  1580.     /**
  1581.      * Set company
  1582.      *
  1583.      * @param string $company
  1584.      *
  1585.      * @return Settings
  1586.      */
  1587.     public function setCompany($company)
  1588.     {
  1589.         $this->company $company;
  1590.         return $this;
  1591.     }
  1592.     /**
  1593.      * Get company
  1594.      *
  1595.      * @return string
  1596.      */
  1597.     public function getCompany()
  1598.     {
  1599.         return $this->company;
  1600.     }
  1601.     /**
  1602.      * Set phone
  1603.      *
  1604.      * @param string $phone
  1605.      *
  1606.      * @return Settings
  1607.      */
  1608.     public function setPhone($phone)
  1609.     {
  1610.         $this->phone $phone;
  1611.         return $this;
  1612.     }
  1613.     /**
  1614.      * Get phone
  1615.      *
  1616.      * @return string
  1617.      */
  1618.     public function getPhone()
  1619.     {
  1620.         return $this->phone;
  1621.     }
  1622.     /**
  1623.      * Set address
  1624.      *
  1625.      * @param string $address
  1626.      *
  1627.      * @return Settings
  1628.      */
  1629.     public function setAddress($address)
  1630.     {
  1631.         $this->address $address;
  1632.         return $this;
  1633.     }
  1634.     /**
  1635.      * Get address
  1636.      *
  1637.      * @return string
  1638.      */
  1639.     public function getAddress()
  1640.     {
  1641.         return $this->address;
  1642.     }
  1643.     /**
  1644.      * Set postalcode
  1645.      *
  1646.      * @param string $postalcode
  1647.      *
  1648.      * @return Settings
  1649.      */
  1650.     public function setPostalcode($postalcode)
  1651.     {
  1652.         $this->postalcode $postalcode;
  1653.         return $this;
  1654.     }
  1655.     /**
  1656.      * Get postalcode
  1657.      *
  1658.      * @return string
  1659.      */
  1660.     public function getPostalcode()
  1661.     {
  1662.         return $this->postalcode;
  1663.     }
  1664.     /**
  1665.      * Set place
  1666.      *
  1667.      * @param string $place
  1668.      *
  1669.      * @return Settings
  1670.      */
  1671.     public function setPlace($place)
  1672.     {
  1673.         $this->place $place;
  1674.         return $this;
  1675.     }
  1676.     /**
  1677.      * Get place
  1678.      *
  1679.      * @return string
  1680.      */
  1681.     public function getPlace()
  1682.     {
  1683.         return $this->place;
  1684.     }
  1685.     /**
  1686.      * Set state
  1687.      *
  1688.      * @param string $state
  1689.      *
  1690.      * @return Settings
  1691.      */
  1692.     public function setState($state)
  1693.     {
  1694.         $this->state $state;
  1695.         return $this;
  1696.     }
  1697.     /**
  1698.      * Get state
  1699.      *
  1700.      * @return string
  1701.      */
  1702.     public function getState()
  1703.     {
  1704.         return $this->state;
  1705.     }
  1706.     /**
  1707.      * Set country
  1708.      *
  1709.      * @param string $country
  1710.      *
  1711.      * @return Settings
  1712.      */
  1713.     public function setCountry($country)
  1714.     {
  1715.         $this->country $country;
  1716.         return $this;
  1717.     }
  1718.     /**
  1719.      * Get country
  1720.      *
  1721.      * @return string
  1722.      */
  1723.     public function getCountry()
  1724.     {
  1725.         return $this->country;
  1726.     }
  1727.     /**
  1728.      * Set kvk
  1729.      *
  1730.      * @param integer $kvk
  1731.      *
  1732.      * @return Settings
  1733.      */
  1734.     public function setKvk($kvk)
  1735.     {
  1736.         $this->kvk $kvk;
  1737.         return $this;
  1738.     }
  1739.     /**
  1740.      * Get kvk
  1741.      *
  1742.      * @return integer
  1743.      */
  1744.     public function getKvk()
  1745.     {
  1746.         return $this->kvk;
  1747.     }
  1748.     /**
  1749.      * Set taxNo
  1750.      *
  1751.      * @param integer $taxNo
  1752.      *
  1753.      * @return Settings
  1754.      */
  1755.     public function setTaxNo($taxNo)
  1756.     {
  1757.         $this->taxNo $taxNo;
  1758.         return $this;
  1759.     }
  1760.     /**
  1761.      * Get taxNo
  1762.      *
  1763.      * @return integer
  1764.      */
  1765.     public function getTaxNo()
  1766.     {
  1767.         return $this->taxNo;
  1768.     }
  1769.     /**
  1770.      * Set tagline
  1771.      *
  1772.      * @param string $tagline
  1773.      *
  1774.      * @return Settings
  1775.      */
  1776.     public function setTagline($tagline)
  1777.     {
  1778.         $this->tagline $tagline;
  1779.         return $this;
  1780.     }
  1781.     /**
  1782.      * Get tagline
  1783.      *
  1784.      * @return string
  1785.      */
  1786.     public function getTagline()
  1787.     {
  1788.         return $this->tagline;
  1789.     }
  1790.     /**
  1791.      * Set layoutIncludeJs
  1792.      *
  1793.      * @param array $layoutIncludeJs
  1794.      *
  1795.      * @return Settings
  1796.      */
  1797.     public function setLayoutIncludeJs($layoutIncludeJs)
  1798.     {
  1799.         $this->layout_include_js $layoutIncludeJs;
  1800.         return $this;
  1801.     }
  1802.     /**
  1803.      * Get layoutIncludeJs
  1804.      *
  1805.      * @return array
  1806.      */
  1807.     public function getLayoutIncludeJs($allowCache false)
  1808.     {
  1809.         $cacheDir __DIR__ '/../../../public/static/';
  1810.         $cacheDirJs $cacheDir 'js/';
  1811.         if($this->cache_cdn && $allowCache){
  1812.             if(!file_exists($cacheDir)){ @mkdir($cacheDir); }
  1813.             if(!file_exists($cacheDirJs)){ @mkdir($cacheDirJs); }
  1814.             if(file_exists($cacheDirJs) && is_writable($cacheDirJs)){
  1815.                 $urls = [];
  1816.                 foreach($this->layout_include_js as $k => $f){
  1817.                     $v $this->guessVersion($ftrue);
  1818.                     $filename = (!empty($v) ? $v '_' '') . basename($f);
  1819.                     if(!file_exists($cacheDirJs $filename)){
  1820.                         $f_full $f;
  1821.                         if(substr($f_full02) == '//'$f_full 'http:' $f_full;
  1822.                         $data file_get_contents($f_full);
  1823.                         if(strlen($data) > 50){
  1824.                             // check if there are any external (.map) files
  1825.                             if (preg_match('/sourceMappingURL=(.+map)/'$data$matches)) {
  1826.                                 if (isset($matches[1]))
  1827.                                 {
  1828.                                     $mapUrl dirname($f_full) . '/' $matches[1];
  1829.                                     
  1830.                                     $sourceFilename = (!empty($v) ? $v '_' '') . basename($matches[1]);
  1831.                                     set_time_limit(0);
  1832.                                     $fp fopen ($cacheDirJs $sourceFilename'w+');
  1833.                                     $ch curl_init(str_replace(" ""%20"$mapUrl));
  1834.                                     curl_setopt($chCURLOPT_TIMEOUT50);
  1835.                                     curl_setopt($chCURLOPT_FILE$fp);
  1836.                                     curl_setopt($chCURLOPT_FOLLOWLOCATIONtrue);
  1837.                                     curl_exec($ch);
  1838.                                     
  1839.                                     $info curl_getinfo($ch);
  1840.                                     curl_close($ch);
  1841.                                     fclose($fp);
  1842.                                     if ($info['http_code'] == 200) {
  1843.                                         // update sourceMappingURL
  1844.                                         $data str_replace($matches[1], '/static/js/' $sourceFilename$data);
  1845.                                     } else {
  1846.                                         // we got a error downloading the map file, deleting file and reference to it.
  1847.                                         if (file_exists($cacheDirJs $sourceFilename)) {
  1848.                                             unlink($cacheDirJs $sourceFilename);
  1849.                                         }
  1850.                                         
  1851.                                         $data preg_replace('/sourceMappingURL=.+map/'''$data);
  1852.                                     }
  1853.                                 }
  1854.                             }
  1855.                             file_put_contents($cacheDirJs $filename$data);
  1856.                             $urls[] = '/static/js/' $filename;
  1857.                         }else{
  1858.                             $urls[] = $f;
  1859.                         }
  1860.                     }else{
  1861.                         $urls[] = '/static/js/' $filename;
  1862.                     }
  1863.                 }
  1864.                 return $urls;
  1865.             }
  1866.         }
  1867.         return $this->layout_include_js;
  1868.     }
  1869.     /**
  1870.      * Set layoutIncludeCss
  1871.      *
  1872.      * @param array $layoutIncludeCss
  1873.      *
  1874.      * @return Settings
  1875.      */
  1876.     public function setLayoutIncludeCss($layoutIncludeCss)
  1877.     {
  1878.         $this->layout_include_css $layoutIncludeCss;
  1879.         return $this;
  1880.     }
  1881.     function guessVersion($str$strip false) {
  1882.         preg_match("/(?:version|v)?\s*((?:[0-9]+\.?)+)/i"$str$matches);
  1883.         $v = (!empty($matches[1]) ? $matches[1] : '');
  1884.         if($strip){
  1885.             $v str_replace('.'''$v);
  1886.         }
  1887.         return $v;
  1888.     }
  1889.     /**
  1890.      * Get layoutIncludeCss
  1891.      *
  1892.      * @return array
  1893.      */
  1894.     public function getLayoutIncludeCss($allowCache false)
  1895.     {
  1896.         $patterns = ['/\(\s?\'(.*?)\'\s?\)/','/url\(\s?(.*?)\s?\)/'];
  1897.         $cacheDir __DIR__ '/../../../public/static/';
  1898.         $cacheDirCss $cacheDir 'css/';
  1899.         if($this->cache_cdn && $allowCache){
  1900.             if(!file_exists($cacheDir)){ @mkdir($cacheDir); }
  1901.             if(!file_exists($cacheDirCss)){ @mkdir($cacheDirCss); }
  1902.             if(file_exists($cacheDirCss) && is_writable($cacheDirCss)){
  1903.                 $urls = [];
  1904.                 foreach($this->layout_include_css as $k => $f){
  1905.                     $v $this->guessVersion($ftrue);
  1906.                     $filename = (!empty($v) ? $v '_' '') . basename($f);
  1907.                     if(!file_exists($cacheDirCss $filename)){
  1908.                         $f_full $f;
  1909.                         if(substr($f_full02) == '//'$f_full 'http:' $f_full;
  1910.                         $data file_get_contents($f_full);
  1911.                         if(strlen($data) > 50){
  1912.                             // Gather external assets
  1913.                             foreach($patterns as $pattern){
  1914.                                 if(preg_match_all($pattern$data$matches)){
  1915.                                     foreach($matches[1] as $k => $include){
  1916.                                         if (str_contains($include'data:image/svg')) {
  1917.                                             // embedded svg, skipping
  1918.                                             continue;
  1919.                                         }
  1920.                                         if(empty($include)){
  1921.                                             if(!empty($matches[2][$k])){
  1922.                                                 $include $matches[2][$k];
  1923.                                             }
  1924.                                         }
  1925.                                         if(strpos($include'.') !== false){
  1926.                                             $prev $include;
  1927.                                             $uri preg_replace('/\/[a-zA-Z0-9-_\.]+\.[a-z]+$/''/'$f_full);
  1928.                                             $file_url $uri $include;
  1929.                                             $include str_replace('../'''$include);
  1930.                                             $include str_replace('./'''$include);
  1931.                                             $include preg_replace('/\?.*?$/'''$include);
  1932.                                             $include preg_replace('/\#.*?$/'''$include);
  1933.                                             $new $include;
  1934.                                             $data str_replace($prev$new$data);
  1935.                                             $path explode('/'$include);
  1936.                                             $path_str $cacheDirCss;
  1937.                                             if(!file_exists($path_str)){
  1938.                                                 mkdir($path_str);
  1939.                                             }
  1940.                                             foreach($path as $index => $dir){
  1941.                                                 if($dir == '.') continue;
  1942.                                                 if($index < (count($path) - 1)){
  1943.                                                     if(!file_exists($path_str $dir)){
  1944.                                                         mkdir($path_str $dir);
  1945.                                                     }
  1946.                                                     $path_str $path_str $dir '/';
  1947.                                                 }
  1948.                                             }
  1949.                                             set_time_limit(0);
  1950.                                             $fp fopen ($cacheDirCss $include'w+');
  1951.                                             $ch curl_init(str_replace(" ","%20",$file_url));
  1952.                                             curl_setopt($chCURLOPT_TIMEOUT50);
  1953.                                             curl_setopt($chCURLOPT_FILE$fp);
  1954.                                             curl_setopt($chCURLOPT_FOLLOWLOCATIONtrue);
  1955.                                             curl_exec($ch);
  1956.                                             curl_close($ch);
  1957.                                             fclose($fp);
  1958.                                         }
  1959.                                     }
  1960.                                     // check if there are any external (.map) files
  1961.                                     if (preg_match('/sourceMappingURL=(.+map)/'$data$matches)) {
  1962.                                         if (isset($matches[1]))
  1963.                                         {
  1964.                                             $mapUrl dirname($f_full) . '/' $matches[1];
  1965.                                             $sourceFilename = (!empty($v) ? $v '_' '') . basename($matches[1]);
  1966.                                             set_time_limit(0);
  1967.                                             $fp fopen ($cacheDirCss $sourceFilename'w+');
  1968.                                             $ch curl_init(str_replace(" ""%20"$mapUrl));
  1969.                                             curl_setopt($chCURLOPT_TIMEOUT50);
  1970.                                             curl_setopt($chCURLOPT_FILE$fp);
  1971.                                             curl_setopt($chCURLOPT_FOLLOWLOCATIONtrue);
  1972.                                             curl_exec($ch);
  1973.                                             $info curl_getinfo($ch);
  1974.                                             curl_close($ch);
  1975.                                             fclose($fp);
  1976.                                             if ($info['http_code'] == 200) {
  1977.                                                 // update sourceMappingURL
  1978.                                                 $data str_replace($matches[1], '/static/css/' $sourceFilename$data);
  1979.                                             } else {
  1980.                                                 // we got a error downloading the map file, deleting file and reference to it.
  1981.                                                 if (file_exists($cacheDirCss $sourceFilename)) {
  1982.                                                     unlink($cacheDirCss $sourceFilename);
  1983.                                                 }
  1984.                                                 $data preg_replace('/sourceMappingURL=.+map/'''$data);
  1985.                                             }
  1986.                                         }
  1987.                                     }
  1988.                                     break;
  1989.                                 }
  1990.                             }
  1991.                             file_put_contents($cacheDirCss $filename$data);
  1992.                             $urls[] = '/static/css/' $filename;
  1993.                         }else{
  1994.                             $urls[] = $f;
  1995.                         }
  1996.                     }else{
  1997.                         $urls[] = '/static/css/' $filename;
  1998.                     }
  1999.                 }
  2000.                 return $urls;
  2001.             }
  2002.         }
  2003.         return $this->layout_include_css;
  2004.     }
  2005.     /**
  2006.      * Set restrictAccess
  2007.      *
  2008.      * @param string $restrictAccess
  2009.      *
  2010.      * @return Settings
  2011.      */
  2012.     public function setRestrictAccess($restrictAccess)
  2013.     {
  2014.         $this->restrict_access $restrictAccess;
  2015.         return $this;
  2016.     }
  2017.     /**
  2018.      * Get restrictAccess
  2019.      *
  2020.      * @return string
  2021.      */
  2022.     public function getRestrictAccess()
  2023.     {
  2024.         return $this->restrict_access;
  2025.     }
  2026.     /**
  2027.      * Get restrictAccess as array
  2028.      *
  2029.      * @return array
  2030.      */
  2031.     public function getRestrictAccessList()
  2032.     {
  2033.         $list explode("\n"$this->restrict_access);
  2034.         $return = array();
  2035.         foreach($list as $k => $v){
  2036.             $v trim($v);
  2037.             if(!empty($v)) $return[] = $v;
  2038.         }
  2039.         return $return;
  2040.     }
  2041.     /**
  2042.      * Set restrictAccess
  2043.      *
  2044.      * @param string $restrictAccess
  2045.      *
  2046.      * @return Settings
  2047.      */
  2048.     public function setRestrictAccessDeny($restrictAccessDeny)
  2049.     {
  2050.         $this->restrict_access_deny $restrictAccessDeny;
  2051.         return $this;
  2052.     }
  2053.     /**
  2054.      * Get restrictAccessDeny
  2055.      *
  2056.      * @return string
  2057.      */
  2058.     public function getRestrictAccessDeny()
  2059.     {
  2060.         return $this->restrict_access_deny;
  2061.     }
  2062.     /**
  2063.      * Get restrictAccessDeny as array
  2064.      *
  2065.      * @return array
  2066.      */
  2067.     public function getRestrictAccessDenyList()
  2068.     {
  2069.         $list explode("\n"$this->restrict_access_deny);
  2070.         $return = array();
  2071.         foreach($list as $k => $v){
  2072.             $v trim($v);
  2073.             if(!empty($v)) $return[] = $v;
  2074.         }
  2075.         return $return;
  2076.     }
  2077.     public function hasAccess(){
  2078.         $allowList $this->getRestrictAccessList();
  2079.         $denyList $this->getRestrictAccessDenyList();
  2080.         $access true;
  2081.         if(in_array($_SERVER['REMOTE_ADDR'], $denyList) || in_array('*.*.*.*'$denyList)){
  2082.             $access false;
  2083.         }
  2084.         if(in_array($_SERVER['REMOTE_ADDR'], $allowList)){
  2085.             $access true;
  2086.         }
  2087.         return $access;
  2088.     }
  2089.     public function getPayLabel($method null){
  2090.         if(empty($method)){
  2091.             if($this->mollie_enabled){
  2092.                 $method 'mollie';
  2093.             }else if($this->buckaroo_enabled){
  2094.                 $method 'buckaroo';
  2095.             }else if($this->omnikassa_enabled){
  2096.                 $method 'omnikassa';
  2097.             }else if($this->multisafepay_enabled){
  2098.                 $method 'multisafepay';
  2099.             }else if($this->pay_enabled){
  2100.                 $method 'pay';
  2101.             }else if($this->sisow_enabled){
  2102.                 $method 'sisow';
  2103.             }else if($this->paypro_enabled){
  2104.                 $method 'paypro';
  2105.             }else if($this->rabosmartpay_enabled){
  2106.                 $method 'rabosmartpay';
  2107.             }
  2108.         }
  2109.         $trans = [
  2110.             'mollie'       => 'Mollie',
  2111.             'buckaroo'     => 'Buckaroo',
  2112.             'omnikassa'    => 'OmniKassa',
  2113.             'multisafepay' => 'MultiSafePay',
  2114.             'pay'          => 'Pay.nl',
  2115.             'sisow'        => 'Sisow',
  2116.             'rabosmartpay' => 'RaboSmartPay',
  2117.         ];
  2118.         if(array_key_exists($method$trans)){
  2119.             return $trans[$method];
  2120.         }
  2121.         return 'unknown';
  2122.     }
  2123.     public function getPay($method null$test false){
  2124.         if(empty($method)){
  2125.             if($this->mollie_enabled){
  2126.                 $method 'mollie';
  2127.             }else if($this->buckaroo_enabled){
  2128.                 $method 'buckaroo';
  2129.             }else if($this->omnikassa_enabled){
  2130.                 $method 'omnikassa';
  2131.             }else if($this->multisafepay_enabled){
  2132.                 $method 'multisafepay';
  2133.             }else if($this->pay_enabled){
  2134.                 $method 'pay';
  2135.             }else if($this->sisow_enabled){
  2136.                 $method 'sisow';
  2137.             }else if($this->paypro_enabled){
  2138.                 $method 'paypro';
  2139.             }else if($this->rabosmartpay_enabled){
  2140.                 $method 'rabosmartpay';
  2141.             }
  2142.         }
  2143.         if($this->getTest()){
  2144.             $test true;
  2145.         }
  2146.         if($method == 'mollie'){
  2147.             $Pay = new \App\CmsBundle\Classes\Pay('mollie', [
  2148.                 'locale' => $this->language->getLocale(),
  2149.                 'live_mode' => ($test false : (bool)$this->getMollieLive()),
  2150.                 'key_test'  => $this->getMollieApiTest(),
  2151.                 'key_live'  => $this->getMollieApiLive(),
  2152.                 'subscription' => $this->getMollieSubscription(),
  2153.             ]);
  2154.         }else if($method == 'paypro'){
  2155.             $Pay = new \App\CmsBundle\Classes\Pay('paypro', [
  2156.                 'locale'       => $this->language->getLocale(),
  2157.                 'live_mode'    => ($test false : (bool)$this->getPayproLive()),
  2158.                 'key'          => $this->getPayproKey(),
  2159.                 'subscription' => $this->getPayproSubscription(),
  2160.             ]);
  2161.         }else if($method == 'buckaroo'){
  2162.             $Pay = new \App\CmsBundle\Classes\Pay('buckaroo', [
  2163.                 'locale' => $this->language->getLocale(),
  2164.                 'live_mode' => ($test false : (bool)$this->getBuckarooLive()),
  2165.                 'key'       => $this->getBuckarooWebsiteKey(),
  2166.                 'secret'       => $this->getBuckarooSecret(),
  2167.                 'subscription' => false,
  2168.             ]);
  2169.         }else if($method == 'omnikassa'){
  2170.             $Pay = new \App\CmsBundle\Classes\Pay('omnikassa', [
  2171.                 'locale' => $this->language->getLocale(),
  2172.                 'live_mode' => ($test false : (bool)$this->getOmnikassaLive()),
  2173.                 'signing_live' => $this->getOmnikassaSign(),
  2174.                 'refresh_live' => $this->getOmnikassaRefresh(),
  2175.                 'signing_test' => $this->getOmnikassaSignTest(),
  2176.                 'refresh_test' => $this->getOmnikassaRefreshTest(),
  2177.                 'subscription' => false,
  2178.             ]);
  2179.         }else if($method == 'multisafepay'){
  2180.             $Pay = new \App\CmsBundle\Classes\Pay('multisafepay', [
  2181.                 'locale' => $this->language->getLocale(),
  2182.                 'live_mode' => ($test false : (bool)$this->getMultisafepayLive()),
  2183.                 'api_key_live'  => $this->getMultisafepayApi(),
  2184.                 'api_key_test'  => $this->getMultisafepayApiTest(),
  2185.                 'subscription' => false,
  2186.             ]);
  2187.         }else if($method == 'pay'){
  2188.             $Pay = new \App\CmsBundle\Classes\Pay('pay', [
  2189.                 'locale' => $this->language->getLocale(),
  2190.                 'live_mode' => ($test false : (bool)$this->getPayLive()),
  2191.                 'service_id'  => $this->getPayServiceId(),
  2192.                 'key_test'  => $this->getPayApiTest(),
  2193.                 'key_live'  => $this->getPayApiLive(),
  2194.                 'subscription' => false,
  2195.             ]);
  2196.         }else if($method == 'sisow'){
  2197.             $Pay = new \App\CmsBundle\Classes\Pay('sisow', [
  2198.                 'locale' => $this->language->getLocale(),
  2199.                 'live_mode' => ($test false : (bool)$this->getSisowLive()),
  2200.                 'merchant_id'  => $this->getSisowMerchantId(),
  2201.                 'merchant_key'  => $this->getSisowMerchantKey(),
  2202.                 'shop_id'  => $this->getSisowShopId(),
  2203.                 'subscription' => false,
  2204.                 'options'      => $this->getSisowOptions(),
  2205.             ]);
  2206.         }else if($method == 'rabosmartpay'){
  2207.             $Pay = new \App\CmsBundle\Classes\Pay('rabosmartpay', [
  2208.                 'locale' => $this->language->getLocale(),
  2209.                 'live_mode' => ($test false : (bool)$this->getRaboSmartPayLive()),
  2210.                 'key_test'  => $this->getRaboSmartPayApiRefreshTokenTest(),
  2211.                 'key_live'  => $this->getRaboSmartPayApiRefreshTokenLive(),
  2212.                 'signing_token' => $this->getRaboSmartPayApiSigningTokenTest(),
  2213.                 'subscription' => $this->getRaboSmartPaySubscription(),
  2214.             ]);
  2215.         }else{
  2216.             $Pay = new \App\CmsBundle\Classes\Pay();
  2217.         }
  2218.         if($this->getTest() || $test){
  2219.             $Pay->setTest(true);
  2220.         }
  2221.         return $Pay;
  2222.     }
  2223.     /**
  2224.      * Get Mollie object
  2225.      *
  2226.      * @return string
  2227.      */
  2228.     /*public function getMollie()
  2229.     {
  2230.         $key = $this->getMollieApiTest();
  2231.         if($this->getMollieLive()){
  2232.             $key = $this->getMollieApiLive();
  2233.         }
  2234.         if(!empty($key)){
  2235.             $mollie = new \Mollie_API_Client;
  2236.             $mollie->setApiKey($key);
  2237.             return $mollie;
  2238.         }
  2239.         return null;
  2240.     }*/
  2241.     /**
  2242.      * Set mollieApi
  2243.      *
  2244.      * @param string $mollieApi
  2245.      *
  2246.      * @return Settings
  2247.      */
  2248.     public function setMollieApi($mollieApi)
  2249.     {
  2250.         $this->mollie_api $mollieApi;
  2251.         return $this;
  2252.     }
  2253.     /**
  2254.      * Get mollieApi
  2255.      *
  2256.      * @return string
  2257.      */
  2258.     public function getMollieApi()
  2259.     {
  2260.         return $this->mollie_api;
  2261.     }
  2262.     /**
  2263.      * Set mollieApiTest
  2264.      *
  2265.      * @param string $mollieApiTest
  2266.      *
  2267.      * @return Settings
  2268.      */
  2269.     public function setMollieApiTest($mollieApiTest)
  2270.     {
  2271.         $this->mollie_api_test $mollieApiTest;
  2272.         return $this;
  2273.     }
  2274.     /**
  2275.      * Get mollieApiTest
  2276.      *
  2277.      * @return string
  2278.      */
  2279.     public function getMollieApiTest()
  2280.     {
  2281.         return $this->mollie_api_test;
  2282.     }
  2283.     /**
  2284.      * Set mollieApiLive
  2285.      *
  2286.      * @param string $mollieApiLive
  2287.      *
  2288.      * @return Settings
  2289.      */
  2290.     public function setMollieApiLive($mollieApiLive)
  2291.     {
  2292.         $this->mollie_api_live $mollieApiLive;
  2293.         return $this;
  2294.     }
  2295.     /**
  2296.      * Get mollieApiLive
  2297.      *
  2298.      * @return string
  2299.      */
  2300.     public function getMollieApiLive()
  2301.     {
  2302.         return $this->mollie_api_live;
  2303.     }
  2304.     /**
  2305.      * Set mollieLive
  2306.      *
  2307.      * @param boolean $mollieLive
  2308.      *
  2309.      * @return Settings
  2310.      */
  2311.     public function setMollieLive($mollieLive)
  2312.     {
  2313.         $this->mollie_live $mollieLive;
  2314.         return $this;
  2315.     }
  2316.     /**
  2317.      * Get mollieLive
  2318.      *
  2319.      * @return boolean
  2320.      */
  2321.     public function getMollieLive()
  2322.     {
  2323.         return $this->mollie_live;
  2324.     }
  2325.     /**
  2326.      * Set piwikApiHash
  2327.      *
  2328.      * @param string $piwikApiHash
  2329.      *
  2330.      * @return Settings
  2331.      */
  2332.     public function setPiwikApiHash($piwikApiHash)
  2333.     {
  2334.         $this->piwik_api_hash $piwikApiHash;
  2335.         return $this;
  2336.     }
  2337.     /**
  2338.      * Get piwikApiHash
  2339.      *
  2340.      * @return string
  2341.      */
  2342.     public function getPiwikApiHash()
  2343.     {
  2344.         return $this->piwik_api_hash;
  2345.     }
  2346.     /**
  2347.      * Set piwikSiteId
  2348.      *
  2349.      * @param integer $piwikSiteId
  2350.      *
  2351.      * @return Settings
  2352.      */
  2353.     public function setPiwikSiteId($piwikSiteId)
  2354.     {
  2355.         $this->piwik_site_id $piwikSiteId;
  2356.         return $this;
  2357.     }
  2358.     /**
  2359.      * Get piwikSiteId
  2360.      *
  2361.      * @return integer
  2362.      */
  2363.     public function getPiwikSiteId()
  2364.     {
  2365.         return $this->piwik_site_id;
  2366.     }
  2367.     /**
  2368.      * Set cacheInvalidated
  2369.      *
  2370.      * @param boolean $cacheInvalidated
  2371.      *
  2372.      * @return Settings
  2373.      */
  2374.     public function setCacheInvalidated($cacheInvalidated)
  2375.     {
  2376.         $this->cache_invalidated $cacheInvalidated;
  2377.         return $this;
  2378.     }
  2379.     /**
  2380.      * Get cacheInvalidated
  2381.      *
  2382.      * @return boolean
  2383.      */
  2384.     public function getCacheInvalidated()
  2385.     {
  2386.         return $this->cache_invalidated;
  2387.     }
  2388.     /**
  2389.      * Set footerBlock1
  2390.      *
  2391.      * @param string $footerBlock1
  2392.      *
  2393.      * @return Settings
  2394.      */
  2395.     public function setFooterBlock1($footerBlock1)
  2396.     {
  2397.         $this->footer_block_1 $footerBlock1;
  2398.         return $this;
  2399.     }
  2400.     /**
  2401.      * Get footerBlock1
  2402.      *
  2403.      * @return string
  2404.      */
  2405.     public function getFooterBlock1()
  2406.     {
  2407.         return $this->footer_block_1;
  2408.     }
  2409.     /**
  2410.      * Set footerBlock2
  2411.      *
  2412.      * @param string $footerBlock2
  2413.      *
  2414.      * @return Settings
  2415.      */
  2416.     public function setFooterBlock2($footerBlock2)
  2417.     {
  2418.         $this->footer_block_2 $footerBlock2;
  2419.         return $this;
  2420.     }
  2421.     /**
  2422.      * Get footerBlock2
  2423.      *
  2424.      * @return string
  2425.      */
  2426.     public function getFooterBlock2()
  2427.     {
  2428.         return $this->footer_block_2;
  2429.     }
  2430.     /**
  2431.      * Set footerBlock3
  2432.      *
  2433.      * @param string $footerBlock3
  2434.      *
  2435.      * @return Settings
  2436.      */
  2437.     public function setFooterBlock3($footerBlock3)
  2438.     {
  2439.         $this->footer_block_3 $footerBlock3;
  2440.         return $this;
  2441.     }
  2442.     /**
  2443.      * Get footerBlock3
  2444.      *
  2445.      * @return string
  2446.      */
  2447.     public function getFooterBlock3()
  2448.     {
  2449.         return $this->footer_block_3;
  2450.     }
  2451.     /**
  2452.      * Set footerBlock4
  2453.      *
  2454.      * @param string $footerBlock4
  2455.      *
  2456.      * @return Settings
  2457.      */
  2458.     public function setFooterBlock4($footerBlock4)
  2459.     {
  2460.         $this->footer_block_4 $footerBlock4;
  2461.         return $this;
  2462.     }
  2463.     /**
  2464.      * Get footerBlock4
  2465.      *
  2466.      * @return string
  2467.      */
  2468.     public function getFooterBlock4()
  2469.     {
  2470.         return $this->footer_block_4;
  2471.     }
  2472.     /**
  2473.      * Set footerBlock5
  2474.      *
  2475.      * @param string $footerBlock5
  2476.      *
  2477.      * @return Settings
  2478.      */
  2479.     public function setFooterBlock5($footerBlock5)
  2480.     {
  2481.         $this->footer_block_5 $footerBlock5;
  2482.         return $this;
  2483.     }
  2484.     /**
  2485.      * Get footerBlock5
  2486.      *
  2487.      * @return string
  2488.      */
  2489.     public function getFooterBlock5()
  2490.     {
  2491.         return $this->footer_block_5;
  2492.     }
  2493.     /**
  2494.      * Set uptimeRobotKey
  2495.      *
  2496.      * @param string $uptimeRobotKey
  2497.      *
  2498.      * @return Settings
  2499.      */
  2500.     public function setUptimeRobotKey($uptimeRobotKey)
  2501.     {
  2502.         $this->uptime_robot_key $uptimeRobotKey;
  2503.         return $this;
  2504.     }
  2505.     /**
  2506.      * Get uptimeRobotKey
  2507.      *
  2508.      * @return string
  2509.      */
  2510.     public function getUptimeRobotKey()
  2511.     {
  2512.         return $this->uptime_robot_key;
  2513.     }
  2514.     /**
  2515.      * Set language
  2516.      *
  2517.      * @param \App\CmsBundle\Entity\Language $language
  2518.      *
  2519.      * @return Settings
  2520.      */
  2521.     public function setLanguage(\App\CmsBundle\Entity\Language $language null)
  2522.     {
  2523.         $this->language $language;
  2524.         return $this;
  2525.     }
  2526.     /**
  2527.      * Get language
  2528.      *
  2529.      * @return \App\CmsBundle\Entity\Language
  2530.      */
  2531.     public function getLanguage()
  2532.     {
  2533.         return $this->language;
  2534.     }
  2535.     /**
  2536.      * Set host
  2537.      *
  2538.      * @param string $host
  2539.      *
  2540.      * @return Settings
  2541.      */
  2542.     public function setHost($host)
  2543.     {
  2544.         $this->host $host;
  2545.         return $this;
  2546.     }
  2547.     /**
  2548.      * Get host
  2549.      *
  2550.      * @return string
  2551.      */
  2552.     public function getHost()
  2553.     {
  2554.         return $this->host;
  2555.     }
  2556.     /**
  2557.      * Set defaultTemplate
  2558.      *
  2559.      * @param string $defaultTemplate
  2560.      *
  2561.      * @return Settings
  2562.      */
  2563.     public function setDefaultTemplate($defaultTemplate)
  2564.     {
  2565.         $this->default_template $defaultTemplate;
  2566.         return $this;
  2567.     }
  2568.     /**
  2569.      * Get defaultTemplate
  2570.      *
  2571.      * @return string
  2572.      */
  2573.     public function getDefaultTemplate()
  2574.     {
  2575.         return $this->default_template;
  2576.     }
  2577.     /**
  2578.      * Set googleUa
  2579.      *
  2580.      * @param string $googleUa
  2581.      *
  2582.      * @return Settings
  2583.      */
  2584.     public function setGoogleUa($googleUa)
  2585.     {
  2586.         $this->google_ua $googleUa;
  2587.         return $this;
  2588.     }
  2589.     /**
  2590.      * Get googleUa
  2591.      *
  2592.      * @return string
  2593.      */
  2594.     public function getGoogleUa()
  2595.     {
  2596.         return $this->google_ua;
  2597.     }
  2598.     /**
  2599.      * Set snow
  2600.      *
  2601.      * @param boolean $snow
  2602.      *
  2603.      * @return Settings
  2604.      */
  2605.     public function setSnow($snow)
  2606.     {
  2607.         $this->snow $snow;
  2608.         return $this;
  2609.     }
  2610.     /**
  2611.      * Get snow
  2612.      *
  2613.      * @return boolean
  2614.      */
  2615.     public function getSnow()
  2616.     {
  2617.         return $this->snow;
  2618.     }
  2619.     /**
  2620.      * Set layoutIncludeFont
  2621.      *
  2622.      * @param array $layoutIncludeFont
  2623.      *
  2624.      * @return Settings
  2625.      */
  2626.     public function setLayoutIncludeFont($layoutIncludeFont)
  2627.     {
  2628.         $this->layout_include_font $layoutIncludeFont;
  2629.         return $this;
  2630.     }
  2631.     /**
  2632.      * Get layoutIncludeFont
  2633.      *
  2634.      * @return array
  2635.      */
  2636.     public function getLayoutIncludeFont($allowCache false)
  2637.     {
  2638.         $patterns = ['/\(\s?\'(.*?)\'\s?\)/','/url\(\s?(.*?)\s?\)/'];
  2639.         $cacheDir __DIR__ '/../../../public/static/';
  2640.         $cacheDirFont $cacheDir 'font/';
  2641.         if($this->cache_cdn && $allowCache){
  2642.             if(!file_exists($cacheDir)){ @mkdir($cacheDir); }
  2643.             if(!file_exists($cacheDirFont)){ @mkdir($cacheDirFont); }
  2644.             if(file_exists($cacheDirFont) && is_writable($cacheDirFont)){
  2645.                 $urls = [];
  2646.                 foreach($this->layout_include_font as $k => $f){
  2647.                     $v $this->guessVersion($ftrue);
  2648.                     $filename = (!empty($v) ? $v '_' '') . basename($f);
  2649.                     if(!file_exists($cacheDirFont $filename)){
  2650.                         $f_full $f;
  2651.                         if(substr($f_full02) == '//'$f_full 'http:' $f_full;
  2652.                         $data file_get_contents($f_full);
  2653.                         if(strlen($data) > 50){
  2654.                             // Gather external assets
  2655.                             foreach($patterns as $pattern){
  2656.                                 if(preg_match_all($pattern$data$matches)){
  2657.                                     foreach($matches[1] as $k => $include){
  2658.                                         if(empty($include)){
  2659.                                             if(!empty($matches[2][$k])){
  2660.                                                 $include $matches[2][$k];
  2661.                                             }
  2662.                                         }
  2663.                                         if(strpos($include'.') !== false){
  2664.                                             $prev $include;
  2665.                                             $uri preg_replace('/\/[a-zA-Z0-9-_\.]+\.[a-z]+$/''/'$f_full);
  2666.                                             $file_url $uri $include;
  2667.                                             $include str_replace('../'''$include);
  2668.                                             $include preg_replace('/\?.*?$/'''$include);
  2669.                                             $include preg_replace('/\#.*?$/'''$include);
  2670.                                             $new $include;
  2671.                                             $data str_replace($prev$new$data);
  2672.                                             $include str_replace('./'''$include);
  2673.                                             $path explode('/'$include);
  2674.                                             $path_str $cacheDir 'font/';
  2675.                                             if(!file_exists($path_str)){
  2676.                                                 mkdir($path_str);
  2677.                                             }
  2678.                                             foreach($path as $index => $dir){
  2679.                                                 if($index < (count($path) - 1)){
  2680.                                                     if(!file_exists($path_str $dir)){
  2681.                                                         mkdir($path_str $dir);
  2682.                                                     }
  2683.                                                     $path_str $path_str $dir '/';
  2684.                                                 }
  2685.                                             }
  2686.                                             set_time_limit(0);
  2687.                                             $fp fopen ($cacheDirFont $include'w+');
  2688.                                             $ch curl_init(str_replace(" ","%20",$file_url));
  2689.                                             curl_setopt($chCURLOPT_TIMEOUT50);
  2690.                                             curl_setopt($chCURLOPT_FILE$fp);
  2691.                                             curl_setopt($chCURLOPT_FOLLOWLOCATIONtrue);
  2692.                                             curl_exec($ch);
  2693.                                             curl_close($ch);
  2694.                                             fclose($fp);
  2695.                                         }
  2696.                                     }
  2697.                                     break;
  2698.                                 }
  2699.                             }
  2700.                             // check if there are any external (.map) files
  2701.                             if (preg_match('/sourceMappingURL=(.+map)/'$data$matches)) {
  2702.                                 if (isset($matches[1]))
  2703.                                 {
  2704.                                     $mapUrl dirname($f_full) . '/' $matches[1];
  2705.                                     
  2706.                                     $sourceFilename = (!empty($v) ? $v '_' '') . basename($matches[1]);
  2707.                                     set_time_limit(0);
  2708.                                     $fp fopen ($cacheDirFont $sourceFilename'w+');
  2709.                                     $ch curl_init(str_replace(" ""%20"$mapUrl));
  2710.                                     curl_setopt($chCURLOPT_TIMEOUT50);
  2711.                                     curl_setopt($chCURLOPT_FILE$fp);
  2712.                                     curl_setopt($chCURLOPT_FOLLOWLOCATIONtrue);
  2713.                                     curl_exec($ch);
  2714.                                     $info curl_getinfo($ch);
  2715.                                     curl_close($ch);
  2716.                                     fclose($fp);
  2717.                                     if ($info['http_code'] == 200) {
  2718.                                         // update sourceMappingURL
  2719.                                         $data str_replace($matches[1], '/static/font/' $sourceFilename$data);
  2720.                                     } else {
  2721.                                         // we got a error downloading the map file, deleting file and reference to it.
  2722.                                         if (file_exists($cacheDirFont $sourceFilename)) {
  2723.                                             unlink($cacheDirFont $sourceFilename);
  2724.                                         }
  2725.                                         $data preg_replace('/sourceMappingURL=.+map/'''$data);
  2726.                                     }
  2727.                                 }
  2728.                             }
  2729.                             file_put_contents($cacheDirFont $filename$data);
  2730.                             $urls[] = '/static/font/' $filename;
  2731.                         }else{
  2732.                             $urls[] = $f;
  2733.                         }
  2734.                     }else{
  2735.                         $urls[] = '/static/font/' $filename;
  2736.                     }
  2737.                 }
  2738.                 return $urls;
  2739.             }
  2740.         }
  2741.         return $this->layout_include_font;
  2742.     }
  2743.     // HTML Minifier
  2744.     private function minify_html($input) {
  2745.         if(trim($input) === "") return $input;
  2746.         // Remove extra white-space(s) between HTML attribute(s)
  2747.         $input preg_replace_callback('#<([^\/\s<>!]+)(?:\s+([^<>]*?)\s*|\s*)(\/?)>#s', function($matches) {
  2748.             return '<' $matches[1] . preg_replace('#([^\s=]+)(\=([\'"]?)(.*?)\3)?(\s+|$)#s'' $1$2'$matches[2]) . $matches[3] . '>';
  2749.         }, str_replace("\r"""$input));
  2750.         // Minify inline CSS declaration(s)
  2751.         if(strpos($input' style=') !== false) {
  2752.             $input preg_replace_callback('#<([^<]+?)\s+style=([\'"])(.*?)\2(?=[\/\s>])#s', function($matches) {
  2753.                 return '<' $matches[1] . ' style=' $matches[2] . minify_css($matches[3]) . $matches[2];
  2754.             }, $input);
  2755.         }
  2756.         if(strpos($input'</style>') !== false) {
  2757.           $input preg_replace_callback('#<style(.*?)>(.*?)</style>#is', function($matches) {
  2758.             return '<style' $matches[1] .'>'minify_css($matches[2]) . '</style>';
  2759.           }, $input);
  2760.         }
  2761.         if(strpos($input'</script>') !== false) {
  2762.           $input preg_replace_callback('#<script(.*?)>(.*?)</script>#is', function($matches) {
  2763.             return '<script' $matches[1] .'>'minify_js($matches[2]) . '</script>';
  2764.           }, $input);
  2765.         }
  2766.         return preg_replace(
  2767.             array(
  2768.                 // t = text
  2769.                 // o = tag open
  2770.                 // c = tag close
  2771.                 // Keep important white-space(s) after self-closing HTML tag(s)
  2772.                 '#<(img|input)(>| .*?>)#s',
  2773.                 // Remove a line break and two or more white-space(s) between tag(s)
  2774.                 '#(<!--.*?-->)|(>)(?:\n*|\s{2,})(<)|^\s*|\s*$#s',
  2775.                 '#(<!--.*?-->)|(?<!\>)\s+(<\/.*?>)|(<[^\/]*?>)\s+(?!\<)#s'// t+c || o+t
  2776.                 '#(<!--.*?-->)|(<[^\/]*?>)\s+(<[^\/]*?>)|(<\/.*?>)\s+(<\/.*?>)#s'// o+o || c+c
  2777.                 '#(<!--.*?-->)|(<\/.*?>)\s+(\s)(?!\<)|(?<!\>)\s+(\s)(<[^\/]*?\/?>)|(<[^\/]*?\/?>)\s+(\s)(?!\<)#s'// c+t || t+o || o+t -- separated by long white-space(s)
  2778.                 '#(<!--.*?-->)|(<[^\/]*?>)\s+(<\/.*?>)#s'// empty tag
  2779.                 '#<(img|input)(>| .*?>)<\/\1>#s'// reset previous fix
  2780.                 '#(&nbsp;)&nbsp;(?![<\s])#'// clean up ...
  2781.                 '#(?<=\>)(&nbsp;)(?=\<)#'// --ibid
  2782.                 // Remove HTML comment(s) except IE comment(s)
  2783.                 '#\s*<!--(?!\[if\s).*?-->\s*|(?<!\>)\n+(?=\<[^!])#s'
  2784.             ),
  2785.             array(
  2786.                 '<$1$2</$1>',
  2787.                 '$1$2$3',
  2788.                 '$1$2$3',
  2789.                 '$1$2$3$4$5',
  2790.                 '$1$2$3$4$5$6$7',
  2791.                 '$1$2$3',
  2792.                 '<$1$2',
  2793.                 '$1 ',
  2794.                 '$1',
  2795.                 ""
  2796.             ),
  2797.         $input);
  2798.     }
  2799.     // CSS Minifier => http://ideone.com/Q5USEF + improvement(s)
  2800.     private function minify_css($input) {
  2801.         if(trim($input) === "") return $input;
  2802.         return preg_replace(
  2803.             array(
  2804.                 // Remove comment(s)
  2805.                 '#("(?:[^"\\\]++|\\\.)*+"|\'(?:[^\'\\\\]++|\\\.)*+\')|\/\*(?!\!)(?>.*?\*\/)|^\s*|\s*$#s',
  2806.                 // Remove unused white-space(s)
  2807.                 '#("(?:[^"\\\]++|\\\.)*+"|\'(?:[^\'\\\\]++|\\\.)*+\'|\/\*(?>.*?\*\/))|\s*+;\s*+(})\s*+|\s*+([*$~^|]?+=|[{};,>~+]|\s*+-(?![0-9\.])|!important\b)\s*+|([[(:])\s++|\s++([])])|\s++(:)\s*+(?!(?>[^{}"\']++|"(?:[^"\\\]++|\\\.)*+"|\'(?:[^\'\\\\]++|\\\.)*+\')*+{)|^\s++|\s++\z|(\s)\s+#si',
  2808.                 // Replace `0(cm|em|ex|in|mm|pc|pt|px|vh|vw|%)` with `0`
  2809.                 '#(?<=[\s:])(0)(cm|em|ex|in|mm|pc|pt|px|vh|vw|%)#si',
  2810.                 // Replace `:0 0 0 0` with `:0`
  2811.                 '#:(0\s+0|0\s+0\s+0\s+0)(?=[;\}]|\!important)#i',
  2812.                 // Replace `background-position:0` with `background-position:0 0`
  2813.                 '#(background-position):0(?=[;\}])#si',
  2814.                 // Replace `0.6` with `.6`, but only when preceded by `:`, `,`, `-` or a white-space
  2815.                 '#(?<=[\s:,\-])0+\.(\d+)#s',
  2816.                 // Minify string value
  2817.                 '#(\/\*(?>.*?\*\/))|(?<!content\:)([\'"])([a-z_][a-z0-9\-_]*?)\2(?=[\s\{\}\];,])#si',
  2818.                 '#(\/\*(?>.*?\*\/))|(\burl\()([\'"])([^\s]+?)\3(\))#si',
  2819.                 // Minify HEX color code
  2820.                 '#(?<=[\s:,\-]\#)([a-f0-6]+)\1([a-f0-6]+)\2([a-f0-6]+)\3#i',
  2821.                 // Replace `(border|outline):none` with `(border|outline):0`
  2822.                 '#(?<=[\{;])(border|outline):none(?=[;\}\!])#',
  2823.                 // Remove empty selector(s)
  2824.                 '#(\/\*(?>.*?\*\/))|(^|[\{\}])(?:[^\s\{\}]+)\{\}#s'
  2825.             ),
  2826.             array(
  2827.                 '$1',
  2828.                 '$1$2$3$4$5$6$7',
  2829.                 '$1',
  2830.                 ':0',
  2831.                 '$1:0 0',
  2832.                 '.$1',
  2833.                 '$1$3',
  2834.                 '$1$2$4$5',
  2835.                 '$1$2$3',
  2836.                 '$1:0',
  2837.                 '$1$2'
  2838.             ),
  2839.         $input);
  2840.     }
  2841.     // JavaScript Minifier
  2842.     private function minify_js($input) {
  2843.         if(trim($input) === "") return $input;
  2844.         return preg_replace(
  2845.             array(
  2846.                 // Remove comment(s)
  2847.                 '#\s*("(?:[^"\\\]++|\\\.)*+"|\'(?:[^\'\\\\]++|\\\.)*+\')\s*|\s*\/\*(?!\!|@cc_on)(?>[\s\S]*?\*\/)\s*|\s*(?<![\:\=])\/\/.*(?=[\n\r]|$)|^\s*|\s*$#',
  2848.                 // Remove white-space(s) outside the string and regex
  2849.                 '#("(?:[^"\\\]++|\\\.)*+"|\'(?:[^\'\\\\]++|\\\.)*+\'|\/\*(?>.*?\*\/)|\/(?!\/)[^\n\r]*?\/(?=[\s.,;]|[gimuy]|$))|\s*([!%&*\(\)\-=+\[\]\{\}|;:,.<>?\/])\s*#s',
  2850.                 // Remove the last semicolon
  2851.                 '#;+\}#',
  2852.                 // Minify object attribute(s) except JSON attribute(s). From `{'foo':'bar'}` to `{foo:'bar'}`
  2853.                 '#([\{,])([\'])(\d+|[a-z_][a-z0-9_]*)\2(?=\:)#i',
  2854.                 // --ibid. From `foo['bar']` to `foo.bar`
  2855.                 '#([a-z0-9_\)\]])\[([\'"])([a-z_][a-z0-9_]*)\2\]#i'
  2856.             ),
  2857.             array(
  2858.                 '$1',
  2859.                 '$1$2',
  2860.                 '}',
  2861.                 '$1$3',
  2862.                 '$1.$3'
  2863.             ),
  2864.         $input);
  2865.     }
  2866.     /**
  2867.      * Set mediaDimensions
  2868.      *
  2869.      * @param array $mediaDimensions
  2870.      *
  2871.      * @return Settings
  2872.      */
  2873.     public function setMediaDimensions($mediaDimensions)
  2874.     {
  2875.         $this->media_dimensions $mediaDimensions;
  2876.         return $this;
  2877.     }
  2878.     /**
  2879.      * Get mediaDimensions
  2880.      *
  2881.      * @return array
  2882.      */
  2883.     public function getMediaDimensions()
  2884.     {
  2885.         $dimensions $this->media_dimensions;
  2886.         if(empty($dimensions)){
  2887.             return [
  2888.                 'full' => '1920',
  2889.                 'large' => '900',
  2890.                 'medium' => '600',
  2891.                 'small' => '350',
  2892.                 'thumb' => '150',
  2893.             ];
  2894.         }
  2895.         return $dimensions;
  2896.     }
  2897.     /**
  2898.      * Get mediaDimensions labels
  2899.      *
  2900.      * @return string
  2901.      */
  2902.     public function getDimensionLabel($key)
  2903.     {
  2904.         $trans = [
  2905.             'full' => 'Maximaal',
  2906.             'large' => 'Groot',
  2907.             'medium' => 'Middel',
  2908.             'small' => 'Klein',
  2909.             'thumb' => 'Thumbnail',
  2910.         ];
  2911.         return (!empty($trans[$key]) ? $trans[$key] : $key);
  2912.     }
  2913.     /**
  2914.      * Set cookiebar
  2915.      *
  2916.      * @param boolean $cookiebar
  2917.      *
  2918.      * @return Settings
  2919.      */
  2920.     public function setCookiebar($cookiebar)
  2921.     {
  2922.         $this->cookiebar $cookiebar;
  2923.         return $this;
  2924.     }
  2925.     /**
  2926.      * Get cookiebar
  2927.      *
  2928.      * @return boolean
  2929.      */
  2930.     public function getCookiebar()
  2931.     {
  2932.         return $this->cookiebar;
  2933.     }
  2934.     /**
  2935.      * Set cacheCdn
  2936.      *
  2937.      * @param boolean $cacheCdn
  2938.      *
  2939.      * @return Settings
  2940.      */
  2941.     public function setCacheCdn($cacheCdn)
  2942.     {
  2943.         $this->cache_cdn $cacheCdn;
  2944.         return $this;
  2945.     }
  2946.     /**
  2947.      * Get cacheCdn
  2948.      *
  2949.      * @return boolean
  2950.      */
  2951.     public function getCacheCdn()
  2952.     {
  2953.         return $this->cache_cdn;
  2954.     }
  2955.     /**
  2956.      * Set robots
  2957.      *
  2958.      * @param string $robots
  2959.      *
  2960.      * @return Settings
  2961.      */
  2962.     public function setRobots($robots)
  2963.     {
  2964.         $this->robots $robots;
  2965.         return $this;
  2966.     }
  2967.     /**
  2968.      * Get robots
  2969.      *
  2970.      * @return string
  2971.      */
  2972.     public function getRobots()
  2973.     {
  2974.         return $this->robots;
  2975.     }
  2976.     /**
  2977.      * Set headerBar
  2978.      *
  2979.      * @param boolean $headerBar
  2980.      *
  2981.      * @return Settings
  2982.      */
  2983.     public function setHeaderBar($headerBar)
  2984.     {
  2985.         $this->header_bar $headerBar;
  2986.         return $this;
  2987.     }
  2988.     /**
  2989.      * Get headerBar
  2990.      *
  2991.      * @return boolean
  2992.      */
  2993.     public function getHeaderBar()
  2994.     {
  2995.         return $this->header_bar;
  2996.     }
  2997.     /**
  2998.      * Set headerBarLeft
  2999.      *
  3000.      * @param string $headerBarLeft
  3001.      *
  3002.      * @return Settings
  3003.      */
  3004.     public function setHeaderBarLeft($headerBarLeft)
  3005.     {
  3006.         $this->header_bar_left $headerBarLeft;
  3007.         return $this;
  3008.     }
  3009.     /**
  3010.      * Get headerBarLeft
  3011.      *
  3012.      * @return string
  3013.      */
  3014.     public function getHeaderBarLeft()
  3015.     {
  3016.         return $this->header_bar_left;
  3017.     }
  3018.     /**
  3019.      * Set headerBarRight
  3020.      *
  3021.      * @param string $headerBarRight
  3022.      *
  3023.      * @return Settings
  3024.      */
  3025.     public function setHeaderBarRight($headerBarRight)
  3026.     {
  3027.         $this->header_bar_right $headerBarRight;
  3028.         return $this;
  3029.     }
  3030.     /**
  3031.      * Get headerBarRight
  3032.      *
  3033.      * @return string
  3034.      */
  3035.     public function getHeaderBarRight()
  3036.     {
  3037.         return $this->header_bar_right;
  3038.     }
  3039.     /**
  3040.      * Set logoAlt
  3041.      *
  3042.      * @param \App\CmsBundle\Entity\Media $logoAlt
  3043.      *
  3044.      * @return Settings
  3045.      */
  3046.     public function setLogoAlt(\App\CmsBundle\Entity\Media $logoAlt null)
  3047.     {
  3048.         $this->logo_alt $logoAlt;
  3049.         return $this;
  3050.     }
  3051.     /**
  3052.      * Get logoAlt
  3053.      *
  3054.      * @return \App\CmsBundle\Entity\Media
  3055.      */
  3056.     public function getLogoAlt($fallback true)
  3057.     {
  3058.         if($this->hasLogoAlt()){
  3059.             return '/' $this->logo_alt->getWebPath();
  3060.         }else{
  3061.             if($fallback){
  3062.                 return '/bundles/cms/images/logo.png';
  3063.             }
  3064.         }
  3065.         return null;
  3066.     }
  3067.     /**
  3068.      * Get logoAlt object
  3069.      *
  3070.      * @return \App\CmsBundle\Entity\Media
  3071.      */
  3072.     public function getLogoAltObject()
  3073.     {
  3074.         if($this->hasLogoAlt()){
  3075.             return $this->logo_alt;
  3076.         }
  3077.         return null;
  3078.     }
  3079.     /**
  3080.      * Has logoAlt
  3081.      *
  3082.      * @return boolean
  3083.      */
  3084.     public function hasLogoAlt()
  3085.     {
  3086.         return !empty($this->logo_alt);
  3087.     }
  3088.     /**
  3089.      * Set forceHttps
  3090.      *
  3091.      * @param boolean $forceHttps
  3092.      *
  3093.      * @return Settings
  3094.      */
  3095.     public function setForceHttps($forceHttps)
  3096.     {
  3097.         $this->force_https $forceHttps;
  3098.         return $this;
  3099.     }
  3100.     /**
  3101.      * Get forceHttps
  3102.      *
  3103.      * @return boolean
  3104.      */
  3105.     public function getForceHttps()
  3106.     {
  3107.         return $this->force_https;
  3108.     }
  3109.     /**
  3110.      * Set test.
  3111.      *
  3112.      * @param bool|null $test
  3113.      *
  3114.      * @return Settings
  3115.      */
  3116.     public function setTest($test null)
  3117.     {
  3118.         $this->test $test;
  3119.         return $this;
  3120.     }
  3121.     /**
  3122.      * Get test.
  3123.      *
  3124.      * @return bool|null
  3125.      */
  3126.     public function getTest()
  3127.     {
  3128.         return $this->test;
  3129.     }
  3130.     /**
  3131.      * Set restrictAccessType.
  3132.      *
  3133.      * @param string|null $restrictAccessType
  3134.      *
  3135.      * @return Settings
  3136.      */
  3137.     public function setRestrictAccessType($restrictAccessType null)
  3138.     {
  3139.         $this->restrict_access_type $restrictAccessType;
  3140.         return $this;
  3141.     }
  3142.     /**
  3143.      * Get restrictAccessType.
  3144.      *
  3145.      * @return string|null
  3146.      */
  3147.     public function getRestrictAccessType()
  3148.     {
  3149.         return $this->restrict_access_type;
  3150.     }
  3151.     /**
  3152.      * Set googleGtm.
  3153.      *
  3154.      * @param string|null $googleGtm
  3155.      *
  3156.      * @return Settings
  3157.      */
  3158.     public function setGoogleGtm($googleGtm null)
  3159.     {
  3160.         $this->google_gtm $googleGtm;
  3161.         return $this;
  3162.     }
  3163.     /**
  3164.      * Get googleGtm.
  3165.      *
  3166.      * @return string|null
  3167.      */
  3168.     public function getGoogleGtm()
  3169.     {
  3170.         return $this->google_gtm;
  3171.     }
  3172.     /**
  3173.      * Set googleCc.
  3174.      *
  3175.      * @param string|null $googleCc
  3176.      *
  3177.      * @return Settings
  3178.      */
  3179.     public function setGoogleCc($googleCc null)
  3180.     {
  3181.         $this->google_cc $googleCc;
  3182.         return $this;
  3183.     }
  3184.     /**
  3185.      * Get googleCc.
  3186.      *
  3187.      * @return string|null
  3188.      */
  3189.     public function getGoogleCc()
  3190.     {
  3191.         return $this->google_cc;
  3192.     }
  3193.     /**
  3194.      * Set iosAppId.
  3195.      *
  3196.      * @param string|null $iosAppId
  3197.      *
  3198.      * @return Settings
  3199.      */
  3200.     public function setIosAppId($iosAppId null)
  3201.     {
  3202.         $this->ios_app_id $iosAppId;
  3203.         return $this;
  3204.     }
  3205.     /**
  3206.      * Get iosAppId.
  3207.      *
  3208.      * @return string|null
  3209.      */
  3210.     public function getIosAppId()
  3211.     {
  3212.         return $this->ios_app_id;
  3213.     }
  3214.     /**
  3215.      * Set ccAuthKey.
  3216.      *
  3217.      * @param string|null $ccAuthKey
  3218.      *
  3219.      * @return Settings
  3220.      */
  3221.     public function setCcAuthKey($ccAuthKey null)
  3222.     {
  3223.         $this->cc_auth_key $ccAuthKey;
  3224.         return $this;
  3225.     }
  3226.     /**
  3227.      * Get ccAuthKey.
  3228.      *
  3229.      * @return string|null
  3230.      */
  3231.     public function getCcAuthKey()
  3232.     {
  3233.         return $this->cc_auth_key;
  3234.     }
  3235.     /**
  3236.      * Set ccEnabled.
  3237.      *
  3238.      * @param bool|null $ccEnabled
  3239.      *
  3240.      * @return Settings
  3241.      */
  3242.     public function setCcEnabled($ccEnabled null)
  3243.     {
  3244.         $this->cc_enabled $ccEnabled;
  3245.         return $this;
  3246.     }
  3247.     /**
  3248.      * Get ccEnabled.
  3249.      *
  3250.      * @return bool|null
  3251.      */
  3252.     public function getCcEnabled()
  3253.     {
  3254.         return $this->cc_enabled;
  3255.     }
  3256.     /**
  3257.      * Set ccNotifyEmail.
  3258.      *
  3259.      * @param string|null $ccNotifyEmail
  3260.      *
  3261.      * @return Settings
  3262.      */
  3263.     public function setCcNotifyEmail($ccNotifyEmail null)
  3264.     {
  3265.         $this->cc_notify_email $ccNotifyEmail;
  3266.         return $this;
  3267.     }
  3268.     /**
  3269.      * Get ccNotifyEmail.
  3270.      *
  3271.      * @return string|null
  3272.      */
  3273.     public function getCcNotifyEmail()
  3274.     {
  3275.         return $this->cc_notify_email;
  3276.     }
  3277.     /**
  3278.      * Set ccExpires.
  3279.      *
  3280.      * @param \DateTime|null $ccExpires
  3281.      *
  3282.      * @return Settings
  3283.      */
  3284.     public function setCcExpires($ccExpires null)
  3285.     {
  3286.         $this->cc_expires $ccExpires;
  3287.         return $this;
  3288.     }
  3289.     /**
  3290.      * Get ccExpires.
  3291.      *
  3292.      * @return \DateTime|null
  3293.      */
  3294.     public function getCcExpires()
  3295.     {
  3296.         return $this->cc_expires;
  3297.     }
  3298.     /**
  3299.      * Set androidAppId.
  3300.      *
  3301.      * @param string|null $androidAppId
  3302.      *
  3303.      * @return Settings
  3304.      */
  3305.     public function setAndroidAppId($androidAppId null)
  3306.     {
  3307.         $this->android_app_id $androidAppId;
  3308.         return $this;
  3309.     }
  3310.     /**
  3311.      * Get androidAppId.
  3312.      *
  3313.      * @return string|null
  3314.      */
  3315.     public function getAndroidAppId()
  3316.     {
  3317.         return $this->android_app_id;
  3318.     }
  3319.     /**
  3320.      * Set appLabel.
  3321.      *
  3322.      * @param string|null $appLabel
  3323.      *
  3324.      * @return Settings
  3325.      */
  3326.     public function setAppLabel($appLabel null)
  3327.     {
  3328.         $this->app_label $appLabel;
  3329.         return $this;
  3330.     }
  3331.     /**
  3332.      * Get appLabel.
  3333.      *
  3334.      * @return string|null
  3335.      */
  3336.     public function getAppLabel()
  3337.     {
  3338.         return $this->app_label;
  3339.     }
  3340.     /**
  3341.      * Set app_icon
  3342.      *
  3343.      * @param \App\CmsBundle\Entity\Media $app_icon
  3344.      *
  3345.      * @return Settings
  3346.      */
  3347.     public function setAppIcon(\App\CmsBundle\Entity\Media $app_icon null)
  3348.     {
  3349.         $this->app_icon $app_icon;
  3350.         return $this;
  3351.     }
  3352.     /**
  3353.      * Get app_icon
  3354.      *
  3355.      * @return \App\CmsBundle\Entity\Media
  3356.      */
  3357.     public function getAppIcon()
  3358.     {
  3359.         if($this->hasAppIcon()){
  3360.             return '/' $this->app_icon->getWebPath();
  3361.         }
  3362.         return null;
  3363.     }
  3364.     /**
  3365.      * Get app_icon object
  3366.      *
  3367.      * @return \App\CmsBundle\Entity\Media
  3368.      */
  3369.     public function getAppIconObject()
  3370.     {
  3371.         if($this->hasAppIcon()){
  3372.             return $this->app_icon;
  3373.         }
  3374.         return null;
  3375.     }
  3376.     /**
  3377.      * Has app_icon
  3378.      *
  3379.      * @return boolean
  3380.      */
  3381.     public function hasAppIcon()
  3382.     {
  3383.         return !empty($this->app_icon);
  3384.     }
  3385.     /**
  3386.      * Set cookiebarButton.
  3387.      *
  3388.      * @param bool|null $cookiebarButton
  3389.      *
  3390.      * @return Settings
  3391.      */
  3392.     public function setCookiebarButton($cookiebarButton null)
  3393.     {
  3394.         $this->cookiebar_button $cookiebarButton;
  3395.         return $this;
  3396.     }
  3397.     /**
  3398.      * Get cookiebarButton.
  3399.      *
  3400.      * @return bool|null
  3401.      */
  3402.     public function getCookiebarButton()
  3403.     {
  3404.         return $this->cookiebar_button;
  3405.     }
  3406.     /**
  3407.      * Set cookiebarButtonPosition.
  3408.      *
  3409.      * @param string|null $cookiebarButtonPosition
  3410.      *
  3411.      * @return Settings
  3412.      */
  3413.     public function setCookiebarButtonPosition($cookiebarButtonPosition null)
  3414.     {
  3415.         $this->cookiebar_button_position $cookiebarButtonPosition;
  3416.         return $this;
  3417.     }
  3418.     /**
  3419.      * Get cookiebarButtonPosition.
  3420.      *
  3421.      * @return string|null
  3422.      */
  3423.     public function getCookiebarButtonPosition()
  3424.     {
  3425.         return $this->cookiebar_button_position;
  3426.     }
  3427.     /**
  3428.      * Set cookiebarButtonOffset.
  3429.      *
  3430.      * @param int|null $cookiebarButtonOffset
  3431.      *
  3432.      * @return Settings
  3433.      */
  3434.     public function setCookiebarButtonOffset($cookiebarButtonOffset null)
  3435.     {
  3436.         $this->cookiebar_button_offset $cookiebarButtonOffset;
  3437.         return $this;
  3438.     }
  3439.     /**
  3440.      * Get cookiebarButtonOffset.
  3441.      *
  3442.      * @return int|null
  3443.      */
  3444.     public function getCookiebarButtonOffset()
  3445.     {
  3446.         return (int)$this->cookiebar_button_offset;
  3447.     }
  3448.     /**
  3449.      * Set maxMediaSize.
  3450.      *
  3451.      * @param string|null $maxMediaSize
  3452.      *
  3453.      * @return Settings
  3454.      */
  3455.     public function setMaxMediaSize($maxMediaSize null)
  3456.     {
  3457.         $this->max_media_size $maxMediaSize;
  3458.         return $this;
  3459.     }
  3460.     /**
  3461.      * Get maxMediaSize.
  3462.      *
  3463.      * @return string|null
  3464.      */
  3465.     public function getMaxMediaSize()
  3466.     {
  3467.         return $this->max_media_size;
  3468.     }
  3469.     /**
  3470.      * Get maxMediaSize.
  3471.      *
  3472.      * @return string|null
  3473.      */
  3474.     public function getMaxMediaSizeInKB()
  3475.     {
  3476.         if(preg_match('/^(\d+)([MK]{1})$/'strtoupper($this->max_media_size), $m))
  3477.         {
  3478.             $num $m[1];
  3479.             $str $m[2];
  3480.             switch ($str)
  3481.             {
  3482.                case 'M': return ($num 1000); break;
  3483.                case 'K': return ($num); break;
  3484.             }
  3485.         }
  3486.         return '2000'// 2M
  3487.     }
  3488.     /**
  3489.      * Set googleRecaptchaSitekey.
  3490.      *
  3491.      * @param string|null $googleRecaptchaSitekey
  3492.      *
  3493.      * @return Settings
  3494.      */
  3495.     public function hasGoogleRecaptcha()
  3496.     {
  3497.         if(!empty($this->google_recaptcha_sitekey) && !empty($this->google_recaptcha_secret)){
  3498.             return true;
  3499.         }
  3500.         return false;
  3501.     }
  3502.     /**
  3503.      * Set googleRecaptchaSitekey.
  3504.      *
  3505.      * @param string|null $googleRecaptchaSitekey
  3506.      *
  3507.      * @return Settings
  3508.      */
  3509.     public function setGoogleRecaptchaSitekey($googleRecaptchaSitekey null)
  3510.     {
  3511.         $this->google_recaptcha_sitekey $googleRecaptchaSitekey;
  3512.         return $this;
  3513.     }
  3514.     /**
  3515.      * Get googleRecaptchaSitekey.
  3516.      *
  3517.      * @return string|null
  3518.      */
  3519.     public function getGoogleRecaptchaSitekey()
  3520.     {
  3521.         return $this->google_recaptcha_sitekey;
  3522.     }
  3523.     /**
  3524.      * Set googleRecaptchaSecret.
  3525.      *
  3526.      * @param string|null $googleRecaptchaSecret
  3527.      *
  3528.      * @return Settings
  3529.      */
  3530.     public function setGoogleRecaptchaSecret($googleRecaptchaSecret null)
  3531.     {
  3532.         $this->google_recaptcha_secret $googleRecaptchaSecret;
  3533.         return $this;
  3534.     }
  3535.     /**
  3536.      * Get googleRecaptchaSecret.
  3537.      *
  3538.      * @return string|null
  3539.      */
  3540.     public function getGoogleRecaptchaSecret()
  3541.     {
  3542.         return $this->google_recaptcha_secret;
  3543.     }
  3544.     /**
  3545.      * Return Recaptcha widget if Recaptcha is enabled.
  3546.      *
  3547.      * @param type $optionalText Optional text under the widget
  3548.      * @return string
  3549.      */
  3550.     public function getGoogleRecaptchaWidget($optionalText null)
  3551.     {
  3552.         $text '<div class="recaptcha-wrapper">';
  3553.         if ($this->hasGoogleRecaptcha())
  3554.         {
  3555.             if($this->getGoogleRecaptchaMode() == '2_checkbox'){
  3556.                 $text .= '<div class="g-recaptcha" data-sitekey="' $this->getGoogleRecaptchaSitekey() . '"></div>';
  3557.                 if ($optionalText || !empty($this->google_recaptcha_text))
  3558.                 {
  3559.                     if (empty($optionalText))
  3560.                         $optionalText $this->google_recaptcha_text;
  3561.                     $text .= '<div class="recaptcha-text">' $optionalText .'</div>';
  3562.                 }
  3563.             }else if($this->getGoogleRecaptchaMode() == '2_invisible'){
  3564.                 $text .= '<script>
  3565.                 function validateCaptcha(token) {
  3566.                     console.log( token );
  3567.                     $(\'[name="g-recaptcha-response"]\').val(token);
  3568.                 }
  3569.                 setTimeout(function(){ grecaptcha.execute(); }, 2000);
  3570.                 </script>';
  3571.                 $text .= '<div class="g-recaptcha" data-sitekey="' $this->getGoogleRecaptchaSitekey() . '" data-callback="validateCaptcha" data-size="invisible"></div>';
  3572.             }else{
  3573.                 $text .= '<input type="hidden" name="g-recaptcha-response" id="g-recaptcha-response-alt" value="" />
  3574.                 <input type="text" style="display: none;" name="register-check" id="valid-check" value="" />
  3575.                 <script>
  3576.                     var recaptchaSiteKey = \'' $this->getGoogleRecaptchaSitekey() . '\';
  3577.                 </script>';
  3578.             }
  3579.         }
  3580.         return $text '</div>';
  3581.     }
  3582.     /**
  3583.      * Check if the response we got from recapta in valid
  3584.      *
  3585.      * @param string $recaptchaReponse
  3586.      * @return boolean
  3587.      */
  3588.     public function validateGoogleRecaptcha($recaptchaReponse)
  3589.     {
  3590.         $status true;
  3591.         if ($this->hasGoogleRecaptcha())
  3592.         {
  3593.             $status false;
  3594.             $data = [
  3595.                 'secret' => $this->getGoogleRecaptchaSecret(),
  3596.                 'response' => $recaptchaReponse,
  3597.                 'remoteip' => $_SERVER['REMOTE_ADDR'],
  3598.             ];
  3599.             // dump($data);
  3600.             // dump(http_build_query($data));
  3601.             $verify curl_init();
  3602.             curl_setopt($verifyCURLOPT_URL"https://www.google.com/recaptcha/api/siteverify");
  3603.             curl_setopt($verifyCURLOPT_POSTtrue);
  3604.             curl_setopt($verifyCURLOPT_POSTFIELDShttp_build_query($data));
  3605.             curl_setopt($verifyCURLOPT_SSL_VERIFYPEERfalse);
  3606.             curl_setopt($verifyCURLOPT_RETURNTRANSFERtrue);
  3607.             $curl_dump curl_exec($verify);
  3608.             $response json_decode($curl_dumptrue);
  3609.             // dump($response); die();
  3610.             if($response["success"] === true){
  3611.                 if(isset($response["score"])){
  3612.                     if($response["score"] >= ($this->getCaptchaTreshold() / 100)){
  3613.                         $status true;
  3614.                     }
  3615.                 } else {
  3616.                     $status true;
  3617.                 }
  3618.             }
  3619.         }
  3620.         return $status;
  3621.     }
  3622.     /**
  3623.      * Set googleRecaptchaText.
  3624.      *
  3625.      * @param string|null $googleRecaptchaText
  3626.      *
  3627.      * @return Settings
  3628.      */
  3629.     public function setGoogleRecaptchaText($googleRecaptchaText null)
  3630.     {
  3631.         $this->google_recaptcha_text $googleRecaptchaText;
  3632.         return $this;
  3633.     }
  3634.     /**
  3635.      * Get googleRecaptchaText.
  3636.      *
  3637.      * @return string|null
  3638.      */
  3639.     public function getGoogleRecaptchaText()
  3640.     {
  3641.         return $this->google_recaptcha_text;
  3642.     }
  3643.     /**
  3644.      * Set buckarooWebsiteKey.
  3645.      *
  3646.      * @param string|null $buckarooWebsiteKey
  3647.      *
  3648.      * @return Settings
  3649.      */
  3650.     public function setBuckarooWebsiteKey($buckarooWebsiteKey null)
  3651.     {
  3652.         $this->buckaroo_website_key $buckarooWebsiteKey;
  3653.         return $this;
  3654.     }
  3655.     /**
  3656.      * Get buckarooWebsiteKey.
  3657.      *
  3658.      * @return string|null
  3659.      */
  3660.     public function getBuckarooWebsiteKey()
  3661.     {
  3662.         return $this->buckaroo_website_key;
  3663.     }
  3664.     /**
  3665.      * Set buckarooLive.
  3666.      *
  3667.      * @param bool|null $buckarooLive
  3668.      *
  3669.      * @return Settings
  3670.      */
  3671.     public function setBuckarooLive($buckarooLive null)
  3672.     {
  3673.         $this->buckaroo_live $buckarooLive;
  3674.         return $this;
  3675.     }
  3676.     /**
  3677.      * Get buckarooLive.
  3678.      *
  3679.      * @return bool|null
  3680.      */
  3681.     public function getBuckarooLive()
  3682.     {
  3683.         return $this->buckaroo_live;
  3684.     }
  3685.     // rabosmartpay
  3686.     /**
  3687.      * Set rabosmartpayApi
  3688.      *
  3689.      * @param string $rabosmartpayApi
  3690.      *
  3691.      * @return Settings
  3692.      */
  3693.     public function setRaboSmartPayApi($rabosmartpayApi)
  3694.     {
  3695.         $this->mollie_api $rabosmartpayApi;
  3696.         return $this;
  3697.     }
  3698.     /**
  3699.      * Get rabosmartpayApi
  3700.      *
  3701.      * @return string
  3702.      */
  3703.     public function getRaboSmartPayApi()
  3704.     {
  3705.         return $this->rabosmartpay_api;
  3706.     }
  3707.     /**
  3708.      * Set rabosmartpayApiTest
  3709.      *
  3710.      * @param string $rabosmartpayApiSigningTokenTest
  3711.      *
  3712.      * @return Settings
  3713.      */
  3714.     public function setRaboSmartPayApiSigningTokenTest($rabosmartpayApiSigningTokenTest)
  3715.     {
  3716.         $this->rabosmartpay_api_signing_token_test $rabosmartpayApiSigningTokenTest;
  3717.         return $this;
  3718.     }
  3719.     /**
  3720.      * Get rabosmartpayApiSigningTokenTest
  3721.      *
  3722.      * @return string
  3723.      */
  3724.     public function getRaboSmartPayApiSigningTokenTest()
  3725.     {
  3726.         return $this->rabosmartpay_api_signing_token_test;
  3727.     }
  3728.     /**
  3729.      * Set rabosmartpayApiRefreshTokenTest
  3730.      *
  3731.      * @param string $rabosmartpayApiRefreshTokenTest
  3732.      *
  3733.      * @return Settings
  3734.      */
  3735.     public function setRaboSmartPayApiRefreshTokenTest($rabosmartpayApiRefreshTokenTest)
  3736.     {
  3737.         $this->rabosmartpay_api_refresh_token_test $rabosmartpayApiRefreshTokenTest;
  3738.         return $this;
  3739.     }
  3740.     /**
  3741.      * Get rabosmartpayApiTest
  3742.      *
  3743.      * @return string
  3744.      */
  3745.     public function getRaboSmartPayApiRefreshTokenTest()
  3746.     {
  3747.         return $this->rabosmartpay_api_refresh_token_test;
  3748.     }
  3749.     /**
  3750.      * Set rabosmartpayApiLive
  3751.      *
  3752.      * @param string $rabosmartpayApiRefreshTokenLive
  3753.      *
  3754.      * @return Settings
  3755.      */
  3756.     public function setRaboSmartPayApiRefreshTokenLive($rabosmartpayApiRefreshTokenLive)
  3757.     {
  3758.         $this->rabosmartpay_api_refresh_token_live $rabosmartpayApiRefreshTokenLive;
  3759.         return $this;
  3760.     }
  3761.     /**
  3762.      * Get rabosmartpayApiRefreshTokenLive
  3763.      *
  3764.      * @return string
  3765.      */
  3766.     public function getRaboSmartPayApiRefreshTokenLive()
  3767.     {
  3768.         return $this->rabosmartpay_api_refresh_token_live;
  3769.     }
  3770.     /**
  3771.      * Set rabosmartpayApiSigningTokenLive
  3772.      *
  3773.      * @param string $rabosmartpayApiSigningTokenLive
  3774.      *
  3775.      * @return Settings
  3776.      */
  3777.     public function setRaboSmartPayApiSigningLive($rabosmartpayApiSigningTokenLive)
  3778.     {
  3779.         $this->rabosmartpay_api_signing_token_live $rabosmartpayApiSigningTokenLive;
  3780.         return $this;
  3781.     }
  3782.     /**
  3783.      * Get rabosmartpayApiSigningTokenLive
  3784.      *
  3785.      * @return string
  3786.      */
  3787.     public function getRaboSmartPayApiSigningTokenLive()
  3788.     {
  3789.         return $this->rabosmartpay_api_signing_token_live;
  3790.     }
  3791.     /**
  3792.      * Set rabosmartpayLive
  3793.      *
  3794.      * @param boolean $rabosmartpayLive
  3795.      *
  3796.      * @return Settings
  3797.      */
  3798.     public function setRaboSmartPayLive($rabosmartpayLive)
  3799.     {
  3800.         $this->rabosmartpay_live $rabosmartpayLive;
  3801.         return $this;
  3802.     }
  3803.     /**
  3804.      * Get rabosmartpayLive
  3805.      *
  3806.      * @return boolean
  3807.      */
  3808.     public function getRaboSmartPayLive()
  3809.     {
  3810.         return $this->rabosmartpay_live;
  3811.     }
  3812.     /**
  3813.      * Set rabosmartpaySubscription.
  3814.      *
  3815.      * @param bool|null $rabosmartpaySubscription
  3816.      *
  3817.      * @return Settings
  3818.      */
  3819.     public function setRaboSmartPaySubscription($rabosmartpaySubscription null)
  3820.     {
  3821.         $this->rabosmartpay_subscription $rabosmartpaySubscription;
  3822.         return $this;
  3823.     }
  3824.     /**
  3825.      * Get rabosmartpaySubscription.
  3826.      *
  3827.      * @return bool|null
  3828.      */
  3829.     public function getRaboSmartPaySubscription()
  3830.     {
  3831.         return $this->rabosmartpay_subscription;
  3832.     }
  3833.     /**
  3834.      * Set rabosmartpayEnabled.
  3835.      *
  3836.      * @param bool|null $rabosmartpayEnabled
  3837.      *
  3838.      * @return Settings
  3839.      */
  3840.     public function setRaboSmartPayEnabled($rabosmartpayEnabled null)
  3841.     {
  3842.         $this->rabosmartpay_enabled $rabosmartpayEnabled;
  3843.         return $this;
  3844.     }
  3845.     /**
  3846.      * Get rabosmartpayEnabled.
  3847.      *
  3848.      * @return bool|null
  3849.      */
  3850.     public function getRaboSmartPayEnabled()
  3851.     {
  3852.         return $this->rabosmartpay_enabled;
  3853.     }
  3854.     /**
  3855.      * Set mollieEnabled.
  3856.      *
  3857.      * @param bool|null $mollieEnabled
  3858.      *
  3859.      * @return Settings
  3860.      */
  3861.     public function setMollieEnabled($mollieEnabled null)
  3862.     {
  3863.         $this->mollie_enabled $mollieEnabled;
  3864.         return $this;
  3865.     }
  3866.     /**
  3867.      * Get mollieEnabled.
  3868.      *
  3869.      * @return bool|null
  3870.      */
  3871.     public function getMollieEnabled()
  3872.     {
  3873.         return $this->mollie_enabled;
  3874.     }
  3875.     /**
  3876.      * Set buckarooEnabled.
  3877.      *
  3878.      * @param bool|null $buckarooEnabled
  3879.      *
  3880.      * @return Settings
  3881.      */
  3882.     public function setBuckarooEnabled($buckarooEnabled null)
  3883.     {
  3884.         $this->buckaroo_enabled $buckarooEnabled;
  3885.         return $this;
  3886.     }
  3887.     /**
  3888.      * Get buckarooEnabled.
  3889.      *
  3890.      * @return bool|null
  3891.      */
  3892.     public function getBuckarooEnabled()
  3893.     {
  3894.         return $this->buckaroo_enabled;
  3895.     }
  3896.     /**
  3897.      * Set omnikassaLive.
  3898.      *
  3899.      * @param bool|null $omnikassaLive
  3900.      *
  3901.      * @return Settings
  3902.      */
  3903.     public function setOmnikassaLive($omnikassaLive null)
  3904.     {
  3905.         $this->omnikassa_live $omnikassaLive;
  3906.         return $this;
  3907.     }
  3908.     /**
  3909.      * Get omnikassaLive.
  3910.      *
  3911.      * @return bool|null
  3912.      */
  3913.     public function getOmnikassaLive()
  3914.     {
  3915.         return $this->omnikassa_live;
  3916.     }
  3917.     /**
  3918.      * Set omnikassaEnabled.
  3919.      *
  3920.      * @param bool|null $omnikassaEnabled
  3921.      *
  3922.      * @return Settings
  3923.      */
  3924.     public function setOmnikassaEnabled($omnikassaEnabled null)
  3925.     {
  3926.         $this->omnikassa_enabled $omnikassaEnabled;
  3927.         return $this;
  3928.     }
  3929.     /**
  3930.      * Get omnikassaEnabled.
  3931.      *
  3932.      * @return bool|null
  3933.      */
  3934.     public function getOmnikassaEnabled()
  3935.     {
  3936.         return $this->omnikassa_enabled;
  3937.     }
  3938.     /**
  3939.      * Set mail_header
  3940.      *
  3941.      * @param \App\CmsBundle\Entity\Media $mail_header
  3942.      *
  3943.      * @return Settings
  3944.      */
  3945.     public function setMailHeader(\App\CmsBundle\Entity\Media $mail_header null)
  3946.     {
  3947.         $this->mail_header $mail_header;
  3948.         return $this;
  3949.     }
  3950.     /**
  3951.      * Get mail_header
  3952.      *
  3953.      * @return \App\CmsBundle\Entity\Media
  3954.      */
  3955.     public function getMailHeader()
  3956.     {
  3957.         if($this->hasMailHeader()){
  3958.             return '/' $this->mail_header->getWebPath();
  3959.         }else{
  3960.             return '/bundles/cms/images/mail_header.jpg';
  3961.         }
  3962.     }
  3963.     /**
  3964.      * Get mail_header object
  3965.      *
  3966.      * @return \App\CmsBundle\Entity\Media
  3967.      */
  3968.     public function getMailHeaderObject()
  3969.     {
  3970.         if($this->hasMailHeader()){
  3971.             return $this->mail_header;
  3972.         }
  3973.         return null;
  3974.     }
  3975.     /**
  3976.      * Has mail_header
  3977.      *
  3978.      * @return boolean
  3979.      */
  3980.     public function hasMailHeader()
  3981.     {
  3982.         return !empty($this->mail_header);
  3983.     }
  3984.     /**
  3985.      * Set mailFooter.
  3986.      *
  3987.      * @param string|null $mailFooter
  3988.      *
  3989.      * @return Settings
  3990.      */
  3991.     public function setMailFooter($mailFooter null)
  3992.     {
  3993.         $this->mail_footer $mailFooter;
  3994.         return $this;
  3995.     }
  3996.     /**
  3997.      * Get mailFooter.
  3998.      *
  3999.      * @return string|null
  4000.      */
  4001.     public function getMailFooter()
  4002.     {
  4003.         return $this->mail_footer;
  4004.     }
  4005.     /**
  4006.      * Set buckarooSecret.
  4007.      *
  4008.      * @param string|null $buckarooSecret
  4009.      *
  4010.      * @return Settings
  4011.      */
  4012.     public function setBuckarooSecret($buckarooSecret null)
  4013.     {
  4014.         $this->buckaroo_secret $buckarooSecret;
  4015.         return $this;
  4016.     }
  4017.     /**
  4018.      * Get buckarooSecret.
  4019.      *
  4020.      * @return string|null
  4021.      */
  4022.     public function getBuckarooSecret()
  4023.     {
  4024.         return $this->buckaroo_secret;
  4025.     }
  4026.     /**
  4027.      * Set multisafepayApi.
  4028.      *
  4029.      * @param string|null $multisafepayApi
  4030.      *
  4031.      * @return Settings
  4032.      */
  4033.     public function setMultisafepayApi($multisafepayApi null)
  4034.     {
  4035.         $this->multisafepay_api $multisafepayApi;
  4036.         return $this;
  4037.     }
  4038.     /**
  4039.      * Get multisafepayApi.
  4040.      *
  4041.      * @return string|null
  4042.      */
  4043.     public function getMultisafepayApi()
  4044.     {
  4045.         return $this->multisafepay_api;
  4046.     }
  4047.     /**
  4048.      * Set multisafepayLive.
  4049.      *
  4050.      * @param bool|null $multisafepayLive
  4051.      *
  4052.      * @return Settings
  4053.      */
  4054.     public function setMultisafepayLive($multisafepayLive null)
  4055.     {
  4056.         $this->multisafepay_live $multisafepayLive;
  4057.         return $this;
  4058.     }
  4059.     /**
  4060.      * Get multisafepayLive.
  4061.      *
  4062.      * @return bool|null
  4063.      */
  4064.     public function getMultisafepayLive()
  4065.     {
  4066.         return $this->multisafepay_live;
  4067.     }
  4068.     /**
  4069.      * Set multisafepayEnabled.
  4070.      *
  4071.      * @param bool|null $multisafepayEnabled
  4072.      *
  4073.      * @return Settings
  4074.      */
  4075.     public function setMultisafepayEnabled($multisafepayEnabled null)
  4076.     {
  4077.         $this->multisafepay_enabled $multisafepayEnabled;
  4078.         return $this;
  4079.     }
  4080.     /**
  4081.      * Get multisafepayEnabled.
  4082.      *
  4083.      * @return bool|null
  4084.      */
  4085.     public function getMultisafepayEnabled()
  4086.     {
  4087.         return $this->multisafepay_enabled;
  4088.     }
  4089.     /**
  4090.      * Set multisafepayApiTest.
  4091.      *
  4092.      * @param string|null $multisafepayApiTest
  4093.      *
  4094.      * @return Settings
  4095.      */
  4096.     public function setMultisafepayApiTest($multisafepayApiTest null)
  4097.     {
  4098.         $this->multisafepay_api_test $multisafepayApiTest;
  4099.         return $this;
  4100.     }
  4101.     /**
  4102.      * Get multisafepayApiTest.
  4103.      *
  4104.      * @return string|null
  4105.      */
  4106.     public function getMultisafepayApiTest()
  4107.     {
  4108.         return $this->multisafepay_api_test;
  4109.     }
  4110.     /**
  4111.      * Set baseUri.
  4112.      *
  4113.      * @param string|null $baseUri
  4114.      *
  4115.      * @return Settings
  4116.      */
  4117.     public function setBaseUri($baseUri null)
  4118.     {
  4119.         $this->base_uri $baseUri;
  4120.         return $this;
  4121.     }
  4122.     /**
  4123.      * Get baseUri.
  4124.      *
  4125.      * @return string|null
  4126.      */
  4127.     public function getBaseUri()
  4128.     {
  4129.         return $this->base_uri;
  4130.     }
  4131.     /**
  4132.      * Set errorNotFound.
  4133.      *
  4134.      * @param string|null $errorNotFound
  4135.      *
  4136.      * @return Settings
  4137.      */
  4138.     public function setErrorNotFound($errorNotFound null)
  4139.     {
  4140.         $this->errorNotFound $errorNotFound;
  4141.         return $this;
  4142.     }
  4143.     /**
  4144.      * Get errorNotFound.
  4145.      *
  4146.      * @return string|null
  4147.      */
  4148.     public function getErrorNotFound()
  4149.     {
  4150.         return $this->errorNotFound;
  4151.     }
  4152.     /**
  4153.      * Set errorNoAccess.
  4154.      *
  4155.      * @param string|null $errorNoAccess
  4156.      *
  4157.      * @return Settings
  4158.      */
  4159.     public function setErrorNoAccess($errorNoAccess null)
  4160.     {
  4161.         $this->errorNoAccess $errorNoAccess;
  4162.         return $this;
  4163.     }
  4164.     /**
  4165.      * Get errorNoAccess.
  4166.      *
  4167.      * @return string|null
  4168.      */
  4169.     public function getErrorNoAccess()
  4170.     {
  4171.         return $this->errorNoAccess;
  4172.     }
  4173.     /**
  4174.      * Set errorSystem.
  4175.      *
  4176.      * @param string|null $errorSystem
  4177.      *
  4178.      * @return Settings
  4179.      */
  4180.     public function setErrorSystem($errorSystem null)
  4181.     {
  4182.         $this->errorSystem $errorSystem;
  4183.         return $this;
  4184.     }
  4185.     /**
  4186.      * Get errorSystem.
  4187.      *
  4188.      * @return string|null
  4189.      */
  4190.     public function getErrorSystem()
  4191.     {
  4192.         return $this->errorSystem;
  4193.     }
  4194.     /**
  4195.      * Set customNavigation.
  4196.      *
  4197.      * @param bool|null $customNavigation
  4198.      *
  4199.      * @return Settings
  4200.      */
  4201.     public function setCustomNavigation($customNavigation null)
  4202.     {
  4203.         $this->custom_navigation $customNavigation;
  4204.         return $this;
  4205.     }
  4206.     /**
  4207.      * Get customNavigation.
  4208.      *
  4209.      * @return bool|null
  4210.      */
  4211.     public function getCustomNavigation()
  4212.     {
  4213.         return $this->custom_navigation;
  4214.     }
  4215.     /**
  4216.      * Set serviceBackground.
  4217.      *
  4218.      * @param \App\CmsBundle\Entity\Media|null $serviceBackground
  4219.      *
  4220.      * @return Settings
  4221.      */
  4222.     public function setServiceBackground(\App\CmsBundle\Entity\Media $serviceBackground null)
  4223.     {
  4224.         $this->service_background $serviceBackground;
  4225.         return $this;
  4226.     }
  4227.     /**
  4228.      * Get serviceBackground
  4229.      *
  4230.      * @return \App\CmsBundle\Entity\Media
  4231.      */
  4232.     public function getServiceBackground()
  4233.     {
  4234.         if($this->hasServiceBackground()){
  4235.             return '/' $this->service_background->getWebPath();
  4236.         }else{
  4237.             return '/bundles/cms/images/background.jpg';
  4238.         }
  4239.     }
  4240.     /**
  4241.      * Get serviceBackground object
  4242.      *
  4243.      * @return \App\CmsBundle\Entity\Media
  4244.      */
  4245.     public function getServiceBackgroundObject()
  4246.     {
  4247.         if($this->hasServiceBackground()){
  4248.             return $this->service_background;
  4249.         }
  4250.         return null;
  4251.     }
  4252.     /**
  4253.      * Has serviceBackground
  4254.      *
  4255.      * @return boolean
  4256.      */
  4257.     public function hasServiceBackground()
  4258.     {
  4259.         return !empty($this->service_background);
  4260.     }
  4261.     /**
  4262.      * Set piwikUrl.
  4263.      *
  4264.      * @param string|null $piwikUrl
  4265.      *
  4266.      * @return Settings
  4267.      */
  4268.     public function setPiwikUrl($piwikUrl null)
  4269.     {
  4270.         $this->piwik_url $piwikUrl;
  4271.         return $this;
  4272.     }
  4273.     /**
  4274.      * Get piwikUrl.
  4275.      *
  4276.      * @return string|null
  4277.      */
  4278.     public function getPiwikUrl()
  4279.     {
  4280.         return $this->piwik_url;
  4281.     }
  4282.     /**
  4283.      * Set payApiTest.
  4284.      *
  4285.      * @param string|null $payApiTest
  4286.      *
  4287.      * @return Settings
  4288.      */
  4289.     public function setPayApiTest($payApiTest null)
  4290.     {
  4291.         $this->pay_api_test $payApiTest;
  4292.         return $this;
  4293.     }
  4294.     /**
  4295.      * Get payApiTest.
  4296.      *
  4297.      * @return string|null
  4298.      */
  4299.     public function getPayApiTest()
  4300.     {
  4301.         return $this->pay_api_test;
  4302.     }
  4303.     /**
  4304.      * Set payApiLive.
  4305.      *
  4306.      * @param string|null $payApiLive
  4307.      *
  4308.      * @return Settings
  4309.      */
  4310.     public function setPayApiLive($payApiLive null)
  4311.     {
  4312.         $this->pay_api_live $payApiLive;
  4313.         return $this;
  4314.     }
  4315.     /**
  4316.      * Get payApiLive.
  4317.      *
  4318.      * @return string|null
  4319.      */
  4320.     public function getPayApiLive()
  4321.     {
  4322.         return $this->pay_api_live;
  4323.     }
  4324.     /**
  4325.      * Set payLive.
  4326.      *
  4327.      * @param bool|null $payLive
  4328.      *
  4329.      * @return Settings
  4330.      */
  4331.     public function setPayLive($payLive null)
  4332.     {
  4333.         $this->pay_live $payLive;
  4334.         return $this;
  4335.     }
  4336.     /**
  4337.      * Get payLive.
  4338.      *
  4339.      * @return bool|null
  4340.      */
  4341.     public function getPayLive()
  4342.     {
  4343.         return $this->pay_live;
  4344.     }
  4345.     /**
  4346.      * Set payEnabled.
  4347.      *
  4348.      * @param bool|null $payEnabled
  4349.      *
  4350.      * @return Settings
  4351.      */
  4352.     public function setPayEnabled($payEnabled null)
  4353.     {
  4354.         $this->pay_enabled $payEnabled;
  4355.         return $this;
  4356.     }
  4357.     /**
  4358.      * Get payEnabled.
  4359.      *
  4360.      * @return bool|null
  4361.      */
  4362.     public function getPayEnabled()
  4363.     {
  4364.         return $this->pay_enabled;
  4365.     }
  4366.     /**
  4367.      * Set payServiceId.
  4368.      *
  4369.      * @param string|null $payServiceId
  4370.      *
  4371.      * @return Settings
  4372.      */
  4373.     public function setPayServiceId($payServiceId null)
  4374.     {
  4375.         $this->pay_service_id $payServiceId;
  4376.         return $this;
  4377.     }
  4378.     /**
  4379.      * Get payServiceId.
  4380.      *
  4381.      * @return string|null
  4382.      */
  4383.     public function getPayServiceId()
  4384.     {
  4385.         return $this->pay_service_id;
  4386.     }
  4387.     /**
  4388.      * Set googleRecaptchaMode.
  4389.      *
  4390.      * @param string|null $googleRecaptchaMode
  4391.      *
  4392.      * @return Settings
  4393.      */
  4394.     public function setGoogleRecaptchaMode($googleRecaptchaMode null)
  4395.     {
  4396.         $this->google_recaptcha_mode $googleRecaptchaMode;
  4397.         return $this;
  4398.     }
  4399.     /**
  4400.      * Get googleRecaptchaMode.
  4401.      *
  4402.      * @return string|null
  4403.      */
  4404.     public function getGoogleRecaptchaMode()
  4405.     {
  4406.         if(empty($this->google_recaptcha_mode)){
  4407.             return '2_checkbox';
  4408.         }
  4409.         return $this->google_recaptcha_mode;
  4410.     }
  4411.     /**
  4412.      * Set avgCookie.
  4413.      *
  4414.      * @param string|null $avgCookie
  4415.      *
  4416.      * @return Settings
  4417.      */
  4418.     public function setAvgCookie($avgCookie null)
  4419.     {
  4420.         $this->avg_cookie $avgCookie;
  4421.         return $this;
  4422.     }
  4423.     /**
  4424.      * Get avgCookie.
  4425.      *
  4426.      * @return string|null
  4427.      */
  4428.     public function getAvgCookie()
  4429.     {
  4430.         return $this->avg_cookie;
  4431.     }
  4432.     /**
  4433.      * Set avgDisclaimer.
  4434.      *
  4435.      * @param string|null $avgDisclaimer
  4436.      *
  4437.      * @return Settings
  4438.      */
  4439.     public function setAvgDisclaimer($avgDisclaimer null)
  4440.     {
  4441.         $this->avg_disclaimer $avgDisclaimer;
  4442.         return $this;
  4443.     }
  4444.     /**
  4445.      * Get avgDisclaimer.
  4446.      *
  4447.      * @return string|null
  4448.      */
  4449.     public function getAvgDisclaimer()
  4450.     {
  4451.         return $this->avg_disclaimer;
  4452.     }
  4453.     /**
  4454.      * Set avgPrivacy.
  4455.      *
  4456.      * @param string|null $avgPrivacy
  4457.      *
  4458.      * @return Settings
  4459.      */
  4460.     public function setAvgPrivacy($avgPrivacy null)
  4461.     {
  4462.         $this->avg_privacy $avgPrivacy;
  4463.         return $this;
  4464.     }
  4465.     /**
  4466.      * Get avgPrivacy.
  4467.      *
  4468.      * @return string|null
  4469.      */
  4470.     public function getAvgPrivacy()
  4471.     {
  4472.         return $this->avg_privacy;
  4473.     }
  4474.     /**
  4475.      * Set instagram.
  4476.      *
  4477.      * @param string|null $instagram
  4478.      *
  4479.      * @return Settings
  4480.      */
  4481.     public function setInstagram($instagram null)
  4482.     {
  4483.         $this->instagram $instagram;
  4484.         return $this;
  4485.     }
  4486.     /**
  4487.      * Get instagram.
  4488.      *
  4489.      * @return string|null
  4490.      */
  4491.     public function getInstagram()
  4492.     {
  4493.         return $this->instagram;
  4494.     }
  4495.     /**
  4496.      * Set youtube.
  4497.      *
  4498.      * @param string|null $youtube
  4499.      *
  4500.      * @return Settings
  4501.      */
  4502.     public function setYoutube($youtube null)
  4503.     {
  4504.         $this->youtube $youtube;
  4505.         return $this;
  4506.     }
  4507.     /**
  4508.      * Get youtube.
  4509.      *
  4510.      * @return string|null
  4511.      */
  4512.     public function getYoutube()
  4513.     {
  4514.         return $this->youtube;
  4515.     }
  4516.     /**
  4517.      * Set sisowMerchantId.
  4518.      *
  4519.      * @param string|null $sisowMerchantId
  4520.      *
  4521.      * @return Settings
  4522.      */
  4523.     public function setSisowMerchantId($sisowMerchantId null)
  4524.     {
  4525.         $this->sisow_merchant_id $sisowMerchantId;
  4526.         return $this;
  4527.     }
  4528.     /**
  4529.      * Get sisowMerchantId.
  4530.      *
  4531.      * @return string|null
  4532.      */
  4533.     public function getSisowMerchantId()
  4534.     {
  4535.         return $this->sisow_merchant_id;
  4536.     }
  4537.     /**
  4538.      * Set sisowMerchantKey.
  4539.      *
  4540.      * @param string|null $sisowMerchantKey
  4541.      *
  4542.      * @return Settings
  4543.      */
  4544.     public function setSisowMerchantKey($sisowMerchantKey null)
  4545.     {
  4546.         $this->sisow_merchant_key $sisowMerchantKey;
  4547.         return $this;
  4548.     }
  4549.     /**
  4550.      * Get sisowMerchantKey.
  4551.      *
  4552.      * @return string|null
  4553.      */
  4554.     public function getSisowMerchantKey()
  4555.     {
  4556.         return $this->sisow_merchant_key;
  4557.     }
  4558.     /**
  4559.      * Set sisowShopId.
  4560.      *
  4561.      * @param string|null $sisowShopId
  4562.      *
  4563.      * @return Settings
  4564.      */
  4565.     public function setSisowShopId($sisowShopId null)
  4566.     {
  4567.         $this->sisow_shop_id $sisowShopId;
  4568.         return $this;
  4569.     }
  4570.     /**
  4571.      * Get sisowShopId.
  4572.      *
  4573.      * @return string|null
  4574.      */
  4575.     public function getSisowShopId()
  4576.     {
  4577.         return $this->sisow_shop_id;
  4578.     }
  4579.     /**
  4580.      * Set sisowLive.
  4581.      *
  4582.      * @param bool|null $sisowLive
  4583.      *
  4584.      * @return Settings
  4585.      */
  4586.     public function setSisowLive($sisowLive null)
  4587.     {
  4588.         $this->sisow_live $sisowLive;
  4589.         return $this;
  4590.     }
  4591.     /**
  4592.      * Get sisowLive.
  4593.      *
  4594.      * @return bool|null
  4595.      */
  4596.     public function getSisowLive()
  4597.     {
  4598.         return $this->sisow_live;
  4599.     }
  4600.     /**
  4601.      * Set sisowEnabled.
  4602.      *
  4603.      * @param bool|null $sisowEnabled
  4604.      *
  4605.      * @return Settings
  4606.      */
  4607.     public function setSisowEnabled($sisowEnabled null)
  4608.     {
  4609.         $this->sisow_enabled $sisowEnabled;
  4610.         return $this;
  4611.     }
  4612.     /**
  4613.      * Get sisowEnabled.
  4614.      *
  4615.      * @return bool|null
  4616.      */
  4617.     public function getSisowEnabled()
  4618.     {
  4619.         return $this->sisow_enabled;
  4620.     }
  4621.     /**
  4622.      * Constructor
  4623.      */
  4624.     public function __construct()
  4625.     {
  4626.         $this->pages = new \Doctrine\Common\Collections\ArrayCollection();
  4627.         $this->linked = new ArrayCollection();
  4628.         $this->mediadirs = new ArrayCollection();
  4629.         $this->navigations = new ArrayCollection();
  4630.         $this->users = new ArrayCollection();
  4631.         $this->user_access = new ArrayCollection();
  4632.     }
  4633.     /**
  4634.      * Add page.
  4635.      *
  4636.      * @param \App\CmsBundle\Entity\Page $page
  4637.      *
  4638.      * @return Settings
  4639.      */
  4640.     public function addPage(\App\CmsBundle\Entity\Page $page)
  4641.     {
  4642.         $this->pages[] = $page;
  4643.         return $this;
  4644.     }
  4645.     /**
  4646.      * Remove page.
  4647.      *
  4648.      * @param \App\CmsBundle\Entity\Page $page
  4649.      *
  4650.      * @return boolean TRUE if this collection contained the specified element, FALSE otherwise.
  4651.      */
  4652.     public function removePage(\App\CmsBundle\Entity\Page $page)
  4653.     {
  4654.         return $this->pages->removeElement($page);
  4655.     }
  4656.     /**
  4657.      * Get pages.
  4658.      *
  4659.      * @return \Doctrine\Common\Collections\Collection
  4660.      */
  4661.     public function getPages()
  4662.     {
  4663.         return $this->pages;
  4664.     }
  4665.     /**
  4666.      * Get top-level pages.
  4667.      *
  4668.      * @return array
  4669.      */
  4670.     public function getTopLevelPages()
  4671.     {
  4672.         $list = [];
  4673.         foreach($this->pages as $Page){
  4674.             if($Page->getPage() == null){
  4675.                 $list[] = $Page;
  4676.             }
  4677.         }
  4678.         return $list;
  4679.     }
  4680.     /**
  4681.      * Add user.
  4682.      *
  4683.      * @param \App\CmsBundle\Entity\User $user
  4684.      *
  4685.      * @return Settings
  4686.      */
  4687.     public function addUser(\App\CmsBundle\Entity\User $user)
  4688.     {
  4689.         $this->users[] = $user;
  4690.         return $this;
  4691.     }
  4692.     /**
  4693.      * Remove user.
  4694.      *
  4695.      * @param \App\CmsBundle\Entity\User $user
  4696.      *
  4697.      * @return boolean TRUE if this collection contained the specified element, FALSE otherwise.
  4698.      */
  4699.     public function removeUser(\App\CmsBundle\Entity\User $user)
  4700.     {
  4701.         return $this->users->removeElement($user);
  4702.     }
  4703.     /**
  4704.      * Get users.
  4705.      *
  4706.      * @return \Doctrine\Common\Collections\Collection
  4707.      */
  4708.     public function getUsers()
  4709.     {
  4710.         return $this->users;
  4711.     }
  4712.     /**
  4713.      * Set calendar.
  4714.      *
  4715.      * @param bool|null $calendar
  4716.      *
  4717.      * @return Settings
  4718.      */
  4719.     public function setCalendar($calendar null)
  4720.     {
  4721.         $this->calendar $calendar;
  4722.         return $this;
  4723.     }
  4724.     /**
  4725.      * Get calendar.
  4726.      *
  4727.      * @return bool|null
  4728.      */
  4729.     public function getCalendar()
  4730.     {
  4731.         return $this->calendar;
  4732.     }
  4733.     /**
  4734.      * Add mediadir.
  4735.      *
  4736.      * @param \App\CmsBundle\Entity\Mediadir $mediadir
  4737.      *
  4738.      * @return Settings
  4739.      */
  4740.     public function addMediadir(\App\CmsBundle\Entity\Mediadir $mediadir)
  4741.     {
  4742.         $this->mediadirs[] = $mediadir;
  4743.         return $this;
  4744.     }
  4745.     /**
  4746.      * Remove mediadir.
  4747.      *
  4748.      * @param \App\CmsBundle\Entity\Mediadir $mediadir
  4749.      *
  4750.      * @return boolean TRUE if this collection contained the specified element, FALSE otherwise.
  4751.      */
  4752.     public function removeMediadir(\App\CmsBundle\Entity\Mediadir $mediadir)
  4753.     {
  4754.         return $this->mediadirs->removeElement($mediadir);
  4755.     }
  4756.     /**
  4757.      * Get mediadirs.
  4758.      *
  4759.      * @return \Doctrine\Common\Collections\Collection
  4760.      */
  4761.     public function getMediadirs()
  4762.     {
  4763.         return $this->mediadirs;
  4764.     }
  4765.     /**
  4766.      * Set parent.
  4767.      *
  4768.      * @param \App\CmsBundle\Entity\Settings|null $parent
  4769.      *
  4770.      * @return Settings
  4771.      */
  4772.     public function setParent(\App\CmsBundle\Entity\Settings $parent null)
  4773.     {
  4774.         $this->parent $parent;
  4775.         return $this;
  4776.     }
  4777.     /**
  4778.      * Get parent.
  4779.      *
  4780.      * @return \App\CmsBundle\Entity\Settings|null
  4781.      */
  4782.     public function getParent()
  4783.     {
  4784.         return $this->parent;
  4785.     }
  4786.     /**
  4787.      * Add linked.
  4788.      *
  4789.      * @param \App\CmsBundle\Entity\Settings $linked
  4790.      *
  4791.      * @return Settings
  4792.      */
  4793.     public function addLinked(\App\CmsBundle\Entity\Settings $linked)
  4794.     {
  4795.         $this->linked[] = $linked;
  4796.         return $this;
  4797.     }
  4798.     /**
  4799.      * Remove linked.
  4800.      *
  4801.      * @param \App\CmsBundle\Entity\Settings $linked
  4802.      *
  4803.      * @return boolean TRUE if this collection contained the specified element, FALSE otherwise.
  4804.      */
  4805.     public function removeLinked(\App\CmsBundle\Entity\Settings $linked)
  4806.     {
  4807.         return $this->linked->removeElement($linked);
  4808.     }
  4809.     /**
  4810.      * Get linked.
  4811.      *
  4812.      * @return \Doctrine\Common\Collections\Collection
  4813.      */
  4814.     public function getLinked()
  4815.     {
  4816.         return $this->linked;
  4817.     }
  4818.     public function __clone(){
  4819.         // Cleanup
  4820.         $this->linked    = new ArrayCollection();
  4821.         $this->mediadirs = new ArrayCollection();
  4822.         $this->users     = new ArrayCollection();
  4823.         $this->pages     = new ArrayCollection();
  4824.         $this->base_uri  '';
  4825.         $this->id        null;
  4826.     }
  4827.     /**
  4828.      * Set visibleBundles.
  4829.      *
  4830.      * @param array|null $visibleBundles
  4831.      *
  4832.      * @return Settings
  4833.      */
  4834.     public function setVisibleBundles($visibleBundles null)
  4835.     {
  4836.         $this->visible_bundles $visibleBundles;
  4837.         return $this;
  4838.     }
  4839.     /**
  4840.      * Get visibleBundles.
  4841.      *
  4842.      * @return array|null
  4843.      */
  4844.     public function getVisibleBundles()
  4845.     {
  4846.         if(empty($this->visible_bundles)){
  4847.             return ['TrinityBlogBundle''TrinitySliderBundle''TrinityFormsBundle'];
  4848.         }
  4849.         return $this->visible_bundles;
  4850.     }
  4851.     /**
  4852.      * Set linkedin.
  4853.      *
  4854.      * @param string|null $linkedin
  4855.      *
  4856.      * @return Settings
  4857.      */
  4858.     public function setLinkedin($linkedin null)
  4859.     {
  4860.         $this->linkedin $linkedin;
  4861.         return $this;
  4862.     }
  4863.     /**
  4864.      * Get linkedin.
  4865.      *
  4866.      * @return string|null
  4867.      */
  4868.     public function getLinkedin()
  4869.     {
  4870.         return $this->linkedin;
  4871.     }
  4872.     /**
  4873.      * Get prepared Tiniry object.
  4874.      *
  4875.      * @return Tinify
  4876.      */
  4877.     public function getTinifyObject(){
  4878.         $Tinify null;
  4879.         if(!empty($this->tinypng_api)){
  4880.             $Tinify = new \App\CmsBundle\Classes\Tinify($this);
  4881.         }
  4882.         return $Tinify;
  4883.     }
  4884.     /**
  4885.      * Set tinypngApi.
  4886.      *
  4887.      * @param string|null $tinypngApi
  4888.      *
  4889.      * @return Settings
  4890.      */
  4891.     public function setTinypngApi($tinypngApi null)
  4892.     {
  4893.         $this->tinypng_api $tinypngApi;
  4894.         return $this;
  4895.     }
  4896.     /**
  4897.      * Get tinypngApi.
  4898.      *
  4899.      * @return string|null
  4900.      */
  4901.     public function getTinypngApi()
  4902.     {
  4903.         return $this->tinypng_api;
  4904.     }
  4905.     /**
  4906.      * Set bic.
  4907.      *
  4908.      * @param string|null $bic
  4909.      *
  4910.      * @return Settings
  4911.      */
  4912.     public function setBic($bic null)
  4913.     {
  4914.         $this->bic $bic;
  4915.         return $this;
  4916.     }
  4917.     /**
  4918.      * Get bic.
  4919.      *
  4920.      * @return string|null
  4921.      */
  4922.     public function getBic()
  4923.     {
  4924.         return $this->bic;
  4925.     }
  4926.     /**
  4927.      * Set invoicePeriod.
  4928.      *
  4929.      * @param string|null $invoicePeriod
  4930.      *
  4931.      * @return Settings
  4932.      */
  4933.     public function setInvoicePeriod($invoicePeriod null)
  4934.     {
  4935.         $this->invoice_period $invoicePeriod;
  4936.         return $this;
  4937.     }
  4938.     /**
  4939.      * Get invoicePeriod.
  4940.      *
  4941.      * @return string|null
  4942.      */
  4943.     public function getInvoicePeriod()
  4944.     {
  4945.         return $this->invoice_period;
  4946.     }
  4947.     /**
  4948.      * Set iban.
  4949.      *
  4950.      * @param string|null $iban
  4951.      *
  4952.      * @return Settings
  4953.      */
  4954.     public function setIban($iban null)
  4955.     {
  4956.         $this->iban $iban;
  4957.         return $this;
  4958.     }
  4959.     /**
  4960.      * Get iban.
  4961.      *
  4962.      * @return string|null
  4963.      */
  4964.     public function getIban()
  4965.     {
  4966.         return $this->iban;
  4967.     }
  4968.     /**
  4969.      * Set kvkLocation.
  4970.      *
  4971.      * @param string|null $kvkLocation
  4972.      *
  4973.      * @return Settings
  4974.      */
  4975.     public function setKvkLocation($kvkLocation null)
  4976.     {
  4977.         $this->kvk_location $kvkLocation;
  4978.         return $this;
  4979.     }
  4980.     /**
  4981.      * Get kvkLocation.
  4982.      *
  4983.      * @return string|null
  4984.      */
  4985.     public function getKvkLocation()
  4986.     {
  4987.         return $this->kvk_location;
  4988.     }
  4989.     /**
  4990.      * Add userAccess.
  4991.      *
  4992.      * @param \App\CmsBundle\Entity\User $userAccess
  4993.      *
  4994.      * @return Settings
  4995.      */
  4996.     public function addUserAccess(\App\CmsBundle\Entity\User $userAccess)
  4997.     {
  4998.         $this->user_access[] = $userAccess;
  4999.         return $this;
  5000.     }
  5001.     /**
  5002.      * Remove userAccess.
  5003.      *
  5004.      * @param \App\CmsBundle\Entity\User $userAccess
  5005.      *
  5006.      * @return boolean TRUE if this collection contained the specified element, FALSE otherwise.
  5007.      */
  5008.     public function removeUserAccess(\App\CmsBundle\Entity\User $userAccess)
  5009.     {
  5010.         return $this->user_access->removeElement($userAccess);
  5011.     }
  5012.     /**
  5013.      * Get userAccess.
  5014.      *
  5015.      * @return \Doctrine\Common\Collections\Collection
  5016.      */
  5017.     public function getUserAccess()
  5018.     {
  5019.         return $this->user_access;
  5020.     }
  5021.     /**
  5022.      * Set ignoreCmsBlocks.
  5023.      *
  5024.      * @param bool|null $ignoreCmsBlocks
  5025.      *
  5026.      * @return Settings
  5027.      */
  5028.     public function setIgnoreCmsBlocks($ignoreCmsBlocks null)
  5029.     {
  5030.         $this->ignore_cms_blocks $ignoreCmsBlocks;
  5031.         return $this;
  5032.     }
  5033.     /**
  5034.      * Get ignoreCmsBlocks.
  5035.      *
  5036.      * @return bool|null
  5037.      */
  5038.     public function getIgnoreCmsBlocks()
  5039.     {
  5040.         return $this->ignore_cms_blocks;
  5041.     }
  5042.     /**
  5043.      * Set omnikassaSign.
  5044.      *
  5045.      * @param string|null $omnikassaSign
  5046.      *
  5047.      * @return Settings
  5048.      */
  5049.     public function setOmnikassaSign($omnikassaSign null)
  5050.     {
  5051.         $this->omnikassa_sign $omnikassaSign;
  5052.         return $this;
  5053.     }
  5054.     /**
  5055.      * Get omnikassaSign.
  5056.      *
  5057.      * @return string|null
  5058.      */
  5059.     public function getOmnikassaSign()
  5060.     {
  5061.         return $this->omnikassa_sign;
  5062.     }
  5063.     /**
  5064.      * Set omnikassaRefresh.
  5065.      *
  5066.      * @param string|null $omnikassaRefresh
  5067.      *
  5068.      * @return Settings
  5069.      */
  5070.     public function setOmnikassaRefresh($omnikassaRefresh null)
  5071.     {
  5072.         $this->omnikassa_refresh $omnikassaRefresh;
  5073.         return $this;
  5074.     }
  5075.     /**
  5076.      * Get omnikassaRefresh.
  5077.      *
  5078.      * @return string|null
  5079.      */
  5080.     public function getOmnikassaRefresh()
  5081.     {
  5082.         return $this->omnikassa_refresh;
  5083.     }
  5084.     /**
  5085.      * Set omnikassaSignTest.
  5086.      *
  5087.      * @param string|null $omnikassaSignTest
  5088.      *
  5089.      * @return Settings
  5090.      */
  5091.     public function setOmnikassaSignTest($omnikassaSignTest null)
  5092.     {
  5093.         $this->omnikassa_sign_test $omnikassaSignTest;
  5094.         return $this;
  5095.     }
  5096.     /**
  5097.      * Get omnikassaSignTest.
  5098.      *
  5099.      * @return string|null
  5100.      */
  5101.     public function getOmnikassaSignTest()
  5102.     {
  5103.         return $this->omnikassa_sign_test;
  5104.     }
  5105.     /**
  5106.      * Set omnikassaRefreshTest.
  5107.      *
  5108.      * @param string|null $omnikassaRefreshTest
  5109.      *
  5110.      * @return Settings
  5111.      */
  5112.     public function setOmnikassaRefreshTest($omnikassaRefreshTest null)
  5113.     {
  5114.         $this->omnikassa_refresh_test $omnikassaRefreshTest;
  5115.         return $this;
  5116.     }
  5117.     /**
  5118.      * Get omnikassaRefreshTest.
  5119.      *
  5120.      * @return string|null
  5121.      */
  5122.     public function getOmnikassaRefreshTest()
  5123.     {
  5124.         return $this->omnikassa_refresh_test;
  5125.     }
  5126.     /**
  5127.      * Set siteKey.
  5128.      *
  5129.      * @param string|null $siteKey
  5130.      *
  5131.      * @return Settings
  5132.      */
  5133.     public function setSiteKey($siteKey null)
  5134.     {
  5135.         $this->site_key $siteKey;
  5136.         return $this;
  5137.     }
  5138.     /**
  5139.      * Get siteKey.
  5140.      *
  5141.      * @return string|null
  5142.      */
  5143.     public function getSiteKey()
  5144.     {
  5145.         return $this->site_key;
  5146.     }
  5147.     /**
  5148.      * Set payproKey.
  5149.      *
  5150.      * @param string|null $payproKey
  5151.      *
  5152.      * @return Settings
  5153.      */
  5154.     public function setPayproKey($payproKey null)
  5155.     {
  5156.         $this->paypro_key $payproKey;
  5157.         return $this;
  5158.     }
  5159.     /**
  5160.      * Get payproKey.
  5161.      *
  5162.      * @return string|null
  5163.      */
  5164.     public function getPayproKey()
  5165.     {
  5166.         return $this->paypro_key;
  5167.     }
  5168.     /**
  5169.      * Set payproLive.
  5170.      *
  5171.      * @param bool|null $payproLive
  5172.      *
  5173.      * @return Settings
  5174.      */
  5175.     public function setPayproLive($payproLive null)
  5176.     {
  5177.         $this->paypro_live $payproLive;
  5178.         return $this;
  5179.     }
  5180.     /**
  5181.      * Get payproLive.
  5182.      *
  5183.      * @return bool|null
  5184.      */
  5185.     public function getPayproLive()
  5186.     {
  5187.         return $this->paypro_live;
  5188.     }
  5189.     /**
  5190.      * Set payproEnabled.
  5191.      *
  5192.      * @param bool|null $payproEnabled
  5193.      *
  5194.      * @return Settings
  5195.      */
  5196.     public function setPayproEnabled($payproEnabled null)
  5197.     {
  5198.         $this->paypro_enabled $payproEnabled;
  5199.         return $this;
  5200.     }
  5201.     /**
  5202.      * Get payproEnabled.
  5203.      *
  5204.      * @return bool|null
  5205.      */
  5206.     public function getPayproEnabled()
  5207.     {
  5208.         return $this->paypro_enabled;
  5209.     }
  5210.     /**
  5211.      * Set mollieSubscription.
  5212.      *
  5213.      * @param bool|null $mollieSubscription
  5214.      *
  5215.      * @return Settings
  5216.      */
  5217.     public function setMollieSubscription($mollieSubscription null)
  5218.     {
  5219.         $this->mollie_subscription $mollieSubscription;
  5220.         return $this;
  5221.     }
  5222.     /**
  5223.      * Get mollieSubscription.
  5224.      *
  5225.      * @return bool|null
  5226.      */
  5227.     public function getMollieSubscription()
  5228.     {
  5229.         return $this->mollie_subscription;
  5230.     }
  5231.     /**
  5232.      * Set payproSubscription.
  5233.      *
  5234.      * @param bool|null $payproSubscription
  5235.      *
  5236.      * @return Settings
  5237.      */
  5238.     public function setPayproSubscription($payproSubscription null)
  5239.     {
  5240.         $this->paypro_subscription $payproSubscription;
  5241.         return $this;
  5242.     }
  5243.     /**
  5244.      * Get payproSubscription.
  5245.      *
  5246.      * @return bool|null
  5247.      */
  5248.     public function getPayproSubscription()
  5249.     {
  5250.         return $this->paypro_subscription;
  5251.     }
  5252.     /**
  5253.      * Set allowRegistration.
  5254.      *
  5255.      * @param bool|null $allowRegistration
  5256.      *
  5257.      * @return Settings
  5258.      */
  5259.     public function setAllowRegistration($allowRegistration null)
  5260.     {
  5261.         $this->allow_registration $allowRegistration;
  5262.         return $this;
  5263.     }
  5264.     /**
  5265.      * Get allowRegistration.
  5266.      *
  5267.      * @return bool|null
  5268.      */
  5269.     public function getAllowRegistration()
  5270.     {
  5271.         if($this->allow_registration === null){
  5272.             // Nothing set, default to true
  5273.             return true;
  5274.         }
  5275.         return $this->allow_registration;
  5276.     }
  5277.     /**
  5278.      * Set moderateRegistration.
  5279.      *
  5280.      * @param bool|null $moderateRegistration
  5281.      *
  5282.      * @return Settings
  5283.      */
  5284.     public function setModerateRegistration($moderateRegistration null)
  5285.     {
  5286.         $this->moderate_registration $moderateRegistration;
  5287.         return $this;
  5288.     }
  5289.     /**
  5290.      * Get moderateRegistration.
  5291.      *
  5292.      * @return bool|null
  5293.      */
  5294.     public function getModerateRegistration()
  5295.     {
  5296.         if($this->moderate_registration === null){
  5297.             // Nothing set, default to false
  5298.             return false;
  5299.         }
  5300.         return $this->moderate_registration;
  5301.     }
  5302.     /**
  5303.      * Set integrations.
  5304.      *
  5305.      * @param \App\CmsBundle\Entity\Integrations|null $integrations
  5306.      *
  5307.      * @return Settings
  5308.      */
  5309.     public function setIntegrations(\App\CmsBundle\Entity\Integrations $integrations null)
  5310.     {
  5311.         $this->integrations $integrations;
  5312.         return $this;
  5313.     }
  5314.     /**
  5315.      * Get integrations.
  5316.      *
  5317.      * @return \App\CmsBundle\Entity\Integrations|null
  5318.      */
  5319.     public function getIntegrations()
  5320.     {
  5321.         return $this->integrations;
  5322.     }
  5323.     /**
  5324.      * Set birthdayFields.
  5325.      *
  5326.      * @param bool|null $birthdayFields
  5327.      *
  5328.      * @return Settings
  5329.      */
  5330.     public function setBirthdayFields($birthdayFields null)
  5331.     {
  5332.         $this->birthday_fields $birthdayFields;
  5333.         return $this;
  5334.     }
  5335.     /**
  5336.      * Get birthdayFields.
  5337.      *
  5338.      * @return bool|null
  5339.      */
  5340.     public function getBirthdayFields()
  5341.     {
  5342.         return $this->birthday_fields;
  5343.     }
  5344.     /**
  5345.      * Set overrideKey.
  5346.      *
  5347.      * @param string|null $overrideKey
  5348.      *
  5349.      * @return Settings
  5350.      */
  5351.     public function setOverrideKey($overrideKey null)
  5352.     {
  5353.         $this->override_key $overrideKey;
  5354.         return $this;
  5355.     }
  5356.     /**
  5357.      * Get overrideKey.
  5358.      *
  5359.      * @return string|null
  5360.      */
  5361.     public function getOverrideKey()
  5362.     {
  5363.         return $this->override_key;
  5364.     }
  5365.     /**
  5366.      * Set googleG.
  5367.      *
  5368.      * @param string|null $googleG
  5369.      *
  5370.      * @return Settings
  5371.      */
  5372.     public function setGoogleG($googleG null)
  5373.     {
  5374.         $this->google_g $googleG;
  5375.         return $this;
  5376.     }
  5377.     /**
  5378.      * Get googleG.
  5379.      *
  5380.      * @return string|null
  5381.      */
  5382.     public function getGoogleG()
  5383.     {
  5384.         return $this->google_g;
  5385.     }
  5386.     /**
  5387.      * Set sisowOptions.
  5388.      *
  5389.      * @param array|null $sisowOptions
  5390.      *
  5391.      * @return Settings
  5392.      */
  5393.     public function setSisowOptions($sisowOptions null)
  5394.     {
  5395.         $this->sisow_options $sisowOptions;
  5396.         return $this;
  5397.     }
  5398.     /**
  5399.      * Get sisowOptions.
  5400.      *
  5401.      * @return array|null
  5402.      */
  5403.     public function getSisowOptions()
  5404.     {
  5405.         return $this->sisow_options;
  5406.     }
  5407.     /**
  5408.      * Add navigation.
  5409.      *
  5410.      * @param \App\CmsBundle\Entity\Navigation $navigation
  5411.      *
  5412.      * @return Settings
  5413.      */
  5414.     public function addNavigation(\App\CmsBundle\Entity\Navigation $navigation)
  5415.     {
  5416.         $this->navigations[] = $navigation;
  5417.         return $this;
  5418.     }
  5419.     /**
  5420.      * Remove navigation.
  5421.      *
  5422.      * @param \App\CmsBundle\Entity\Navigation $navigation
  5423.      *
  5424.      * @return boolean TRUE if this collection contained the specified element, FALSE otherwise.
  5425.      */
  5426.     public function removeNavigation(\App\CmsBundle\Entity\Navigation $navigation)
  5427.     {
  5428.         return $this->navigations->removeElement($navigation);
  5429.     }
  5430.     /**
  5431.      * Get navigations.
  5432.      *
  5433.      * @return \Doctrine\Common\Collections\Collection
  5434.      */
  5435.     public function getNavigations()
  5436.     {
  5437.         return $this->navigations;
  5438.     }
  5439.     /**
  5440.      * Set piwikContainerHashs.
  5441.      *
  5442.      * @param string|null $piwikContainerHashs
  5443.      *
  5444.      * @return Settings
  5445.      */
  5446.     public function setPiwikContainerHashs($piwikContainerHashs null)
  5447.     {
  5448.         $this->piwik_container_hashs $piwikContainerHashs;
  5449.         return $this;
  5450.     }
  5451.     /**
  5452.      * Get piwikContainerHashs.
  5453.      *
  5454.      * @return string|null
  5455.      */
  5456.     public function getPiwikContainerHashs()
  5457.     {
  5458.         return $this->piwik_container_hashs;
  5459.     }
  5460.     /**
  5461.      * Set faviconLocation.
  5462.      *
  5463.      * @param string|null $faviconLocation
  5464.      *
  5465.      * @return Settings
  5466.      */
  5467.     public function setFaviconLocation($faviconLocation null)
  5468.     {
  5469.         $this->favicon_location $faviconLocation;
  5470.         return $this;
  5471.     }
  5472.     /**
  5473.      * Get faviconLocation.
  5474.      *
  5475.      * @return string|null
  5476.      */
  5477.     public function getFaviconLocation()
  5478.     {
  5479.         if (is_null($this->favicon_location)) {
  5480.             return '';
  5481.         }
  5482.         return $this->favicon_location;
  5483.     }
  5484.     /**
  5485.      * Set author.
  5486.      *
  5487.      * @param string|null $author
  5488.      *
  5489.      * @return Settings
  5490.      */
  5491.     public function setAuthor($author null)
  5492.     {
  5493.         $this->author $author;
  5494.         return $this;
  5495.     }
  5496.     /**
  5497.      * Get author.
  5498.      *
  5499.      * @return string|null
  5500.      */
  5501.     public function getAuthor()
  5502.     {
  5503.         return $this->author;
  5504.     }
  5505.     /**
  5506.      * Set appleTouchIcon.
  5507.      *
  5508.      * @param string|null $appleTouchIcon
  5509.      *
  5510.      * @return Settings
  5511.      */
  5512.     public function setAppleTouchIcon($appleTouchIcon null)
  5513.     {
  5514.         $this->apple_touch_icon $appleTouchIcon;
  5515.         return $this;
  5516.     }
  5517.     /**
  5518.      * Get appleTouchIcon.
  5519.      *
  5520.      * @return string|null
  5521.      */
  5522.     public function getAppleTouchIcon()
  5523.     {
  5524.         return $this->apple_touch_icon;
  5525.     }
  5526.     /**
  5527.      * Set ogSiteName.
  5528.      *
  5529.      * @param string|null $ogSiteName
  5530.      *
  5531.      * @return Settings
  5532.      */
  5533.     public function setOgSiteName($ogSiteName null)
  5534.     {
  5535.         $this->og_site_name $ogSiteName;
  5536.         return $this;
  5537.     }
  5538.     /**
  5539.      * Get ogSiteName.
  5540.      *
  5541.      * @return string|null
  5542.      */
  5543.     public function getOgSiteName()
  5544.     {
  5545.         return $this->og_site_name;
  5546.     }
  5547.     /**
  5548.      * Set faceDomainKey.
  5549.      *
  5550.      * @param string|null $faceDomainKey
  5551.      *
  5552.      * @return Settings
  5553.      */
  5554.     public function setFaceDomainKey($faceDomainKey null)
  5555.     {
  5556.         $this->face_domain_key $faceDomainKey;
  5557.         return $this;
  5558.     }
  5559.     /**
  5560.      * Get faceDomainKey.
  5561.      *
  5562.      * @return string|null
  5563.      */
  5564.     public function getFaceDomainKey()
  5565.     {
  5566.         return $this->face_domain_key;
  5567.     }
  5568.     /**
  5569.      * Set captchaTreshold.
  5570.      *
  5571.      * @param int|null $captchaTreshold
  5572.      *
  5573.      * @return Settings
  5574.      */
  5575.     public function setCaptchaTreshold($captchaTreshold null)
  5576.     {
  5577.         $this->captcha_treshold $captchaTreshold;
  5578.         return $this;
  5579.     }
  5580.     /**
  5581.      * Get captchaTreshold.
  5582.      *
  5583.      * @return int|null
  5584.      */
  5585.     public function getCaptchaTreshold()
  5586.     {
  5587.         if (is_null($this->captcha_treshold)) {
  5588.             return 50;
  5589.         } else {
  5590.             return $this->captcha_treshold;
  5591.         }
  5592.     }
  5593.     public function getColorSwap(): ?array
  5594.     {
  5595.         return (empty($this->color_swap) ? [] : (array)$this->color_swap);
  5596.     }
  5597.     public function setColorSwap(?array $color_swap): self
  5598.     {
  5599.         $this->color_swap $color_swap;
  5600.         return $this;
  5601.     }
  5602.     public function getFacebookPixel(): ?string
  5603.     {
  5604.         return $this->facebook_pixel;
  5605.     }
  5606.     public function setFacebookPixel(?string $facebook_pixel): self
  5607.     {
  5608.         $this->facebook_pixel $facebook_pixel;
  5609.         return $this;
  5610.     }
  5611.     public function getMetaPixelId(): ?string
  5612.     {
  5613.         return $this->meta_pixel_id;
  5614.     }
  5615.     public function setMetaPixelId(?string $meta_pixel_id): self
  5616.     {
  5617.         $this->meta_pixel_id $meta_pixel_id;
  5618.         return $this;
  5619.     }
  5620.     public function getMetaApiToken(): ?string
  5621.     {
  5622.         return $this->meta_api_token;
  5623.     }
  5624.     public function setMetaApiToken(?string $meta_api_token): self
  5625.     {
  5626.         $this->meta_api_token $meta_api_token;
  5627.         return $this;
  5628.     }
  5629.     /**
  5630.      * Set api_postcode_token
  5631.      *
  5632.      * @param string $api_postcode_token
  5633.      *
  5634.      * @return string
  5635.      */
  5636.     public function setApiPostcodeToken($api_postcode_token)
  5637.     {
  5638.         $this->api_postcode_token $api_postcode_token;
  5639.         return $this;
  5640.     }
  5641.     /**
  5642.      * Get api_postcode_token
  5643.      *
  5644.      * @return string
  5645.      */
  5646.     public function getApiPostcodeToken()
  5647.     {
  5648.         return $this->api_postcode_token;
  5649.     }
  5650.     /**
  5651.      * Set outOfOfficeStart.
  5652.      *
  5653.      * @param \DateTime|null $outOfOfficeStart
  5654.      *
  5655.      * @return Settings
  5656.      */
  5657.     public function setOutOfOfficeStart($outOfOfficeStart null)
  5658.     {
  5659.         $this->ooo_start $outOfOfficeStart;
  5660.         return $this;
  5661.     }
  5662.     /**
  5663.      * Get outOfOfficeStart.
  5664.      *
  5665.      * @return \DateTime|null
  5666.      */
  5667.     public function getOutOfOfficeStart()
  5668.     {
  5669.         return $this->ooo_start;
  5670.     }
  5671.     /**
  5672.      * Set outOfOfficeEnd.
  5673.      *
  5674.      * @param \DateTime|null $outOfOfficeEnd
  5675.      *
  5676.      * @return Settings
  5677.      */
  5678.     public function setOutOfOfficeEnd($outOfOfficeEnd null)
  5679.     {
  5680.         $this->ooo_end $outOfOfficeEnd;
  5681.         return $this;
  5682.     }
  5683.     /**
  5684.      * Get outOfOfficeEnd.
  5685.      *
  5686.      * @return \DateTime|null
  5687.      */
  5688.     public function getOutOfOfficeEnd()
  5689.     {
  5690.         return $this->ooo_end;
  5691.     }
  5692.     /**
  5693.     * Set outOfOfficeMessage
  5694.     *
  5695.     * @param string $outOfOfficeMessage
  5696.     *
  5697.     * @return Settings
  5698.     */
  5699.     public function setOutOfOfficeMessage($outOfOfficeMessage)
  5700.     {
  5701.         $this->ooo_msg $outOfOfficeMessage;
  5702.         return $this;
  5703.     }
  5704.     /**
  5705.     * Get outOfOfficeMessage
  5706.     *
  5707.     * @return string
  5708.     */
  5709.     public function getOutOfOfficeMessage()
  5710.     {
  5711.         return $this->ooo_msg;
  5712.     }
  5713.     public function isOutOfOffice(){
  5714.         if($this->getOutOfOfficeEnabled()){
  5715.             if(!empty($this->getOutOfOfficeStart()) || !empty($this->getOutOfOfficeEnd())){
  5716.                 if(
  5717.                     (empty($this->getOutOfOfficeStart()) || $this->getOutOfOfficeStart()->format('Ymd') <= date('Ymd')) &&
  5718.                     (empty($this->getOutOfOfficeEnd()) || $this->getOutOfOfficeEnd()->format('Ymd') >= date('Ymd'))
  5719.                 ){
  5720.                     // Active
  5721.                     return true;
  5722.                 }
  5723.             }
  5724.         }
  5725.         return false;
  5726.     }
  5727.     /**
  5728.      * Set ooo_enbl
  5729.      *
  5730.      * @param boolean $ooo_enbl
  5731.      *
  5732.      * @return Page
  5733.      */
  5734.     public function setOutOfOfficeEnabled($ooo_enbl)
  5735.     {
  5736.         $this->ooo_enbl $ooo_enbl;
  5737.         return $this;
  5738.     }
  5739.     /**
  5740.      * Get ooo_enbl
  5741.      *
  5742.      * @return boolean
  5743.      */
  5744.     public function getOutOfOfficeEnabled()
  5745.     {
  5746.         return $this->ooo_enbl;
  5747.     }
  5748.     
  5749.     /**
  5750.      * Set lef api active
  5751.      *
  5752.      * @param string $lefApiActive
  5753.      * @return Settings
  5754.      */
  5755.     public function setLefApiActive($lefApiActive)
  5756.     {
  5757.         $this->lef_api_active $lefApiActive;
  5758.         return $this;
  5759.     }
  5760.     /**
  5761.      * Get lef api active
  5762.      *
  5763.      * @return string
  5764.      */
  5765.     public function getLefApiActive()
  5766.     {
  5767.         return $this->lef_api_active;
  5768.     }
  5769.     /**
  5770.      * Set lef api live
  5771.      *
  5772.      * @param string $lefApiActive
  5773.      * @return Settings
  5774.      */
  5775.     public function setLefApiLive($lefApiLive)
  5776.     {
  5777.         $this->lef_api_live $lefApiLive;
  5778.         return $this;
  5779.     }
  5780.     /**
  5781.      * Get lef api live
  5782.      *
  5783.      * @return string
  5784.      */
  5785.     public function getLefApiLive()
  5786.     {
  5787.         return $this->lef_api_live;
  5788.     }
  5789.     /**
  5790.      * Set lef test url
  5791.      *
  5792.      * @param string $lefApiTestUrl
  5793.      * @return Settings
  5794.      */
  5795.     public function setLefApiTestUrl($lefApiTestUrl)
  5796.     {
  5797.         $this->lef_api_test_url$lefApiTestUrl;
  5798.         return $this;
  5799.     }
  5800.     /**
  5801.      * Get lef test url
  5802.      *
  5803.      * @return string
  5804.      */
  5805.     public function getLefApiTestUrl()
  5806.     {
  5807.         return $this->lef_api_test_url;
  5808.     }
  5809.     /**
  5810.      * Set lef live url
  5811.      *
  5812.      * @param string $lefApiLiveUrl
  5813.      * @return Settings
  5814.      */
  5815.     public function setLefApiLiveUrl($lefApiLiveUrl)
  5816.     {
  5817.         $this->lef_api_live_url $lefApiLiveUrl;
  5818.         return $this;
  5819.     }
  5820.     /**
  5821.      * Get lef live url
  5822.      *
  5823.      * @return string
  5824.      */
  5825.     public function getLefApiLiveUrl()
  5826.     {
  5827.         return $this->lef_api_live_url;
  5828.     }
  5829.     /**
  5830.      * Set lef username
  5831.      *
  5832.      * @param string $lefUserName
  5833.      * @return Settings
  5834.      */
  5835.     public function setLefUserName($lefUserName)
  5836.     {
  5837.         $this->lef_user_name $lefUserName;
  5838.         return $this;
  5839.     }
  5840.     /**
  5841.      * Get lef username
  5842.      *
  5843.      * @return string
  5844.      */
  5845.     public function getLefUserName()
  5846.     {
  5847.         return $this->lef_user_name;
  5848.     }
  5849.     /**
  5850.      * Set lef password
  5851.      *
  5852.      * @param string $lefPassword
  5853.      * @return Settings
  5854.      */
  5855.     public function setLefPassword($lefPassword)
  5856.     {
  5857.         $this->lef_password $lefPassword;
  5858.         return $this;
  5859.     }
  5860.     /**
  5861.      * Get lef password
  5862.      *
  5863.      * @return string
  5864.      */
  5865.     public function getLefPassword()
  5866.     {
  5867.         return $this->lef_password;
  5868.     }    
  5869.     /**
  5870.      * Set lef occasion active
  5871.      *
  5872.      * @param string $lefOccasionRequest
  5873.      * @return Settings
  5874.      */
  5875.     public function setLefOccasionRequest($lefOccasionRequest)
  5876.     {
  5877.         $this->lef_occasion_request $lefOccasionRequest;
  5878.         return $this;
  5879.     }
  5880.     /**
  5881.      * Get lef finance occasion active
  5882.      *
  5883.      * @return string
  5884.      */
  5885.     public function getLefFinanceOccasionRequest()
  5886.     {
  5887.         return $this->lef_finance_occassion_request;
  5888.     }    
  5889.     /**
  5890.      * Set lef occasion active
  5891.      *
  5892.      * @param string $lefFinanceOccasionRequest
  5893.      * @return Settings
  5894.      */
  5895.     public function setLefFinanceOccasionRequest($lefFinanceOccasionRequest)
  5896.     {
  5897.         $this->lef_finance_occassion_request $lefFinanceOccasionRequest;
  5898.         return $this;
  5899.     }
  5900.     /**
  5901.      * Get lef occasion active
  5902.      *
  5903.      * @return string
  5904.      */
  5905.     public function getLefOccasionRequest()
  5906.     {
  5907.         return $this->lef_occasion_request;
  5908.     }
  5909.     /**
  5910.      * Set lef forms active
  5911.      *
  5912.      * @param string $lefFormsRequest
  5913.      * @return Settings
  5914.      */
  5915.     public function setLefFormsRequest($lefFormsRequest)
  5916.     {
  5917.         $this->lef_forms_request $lefFormsRequest;
  5918.         return $this;
  5919.     }
  5920.     /**
  5921.      * Get lef private lease active
  5922.      *
  5923.      * @return string
  5924.      */
  5925.     public function getLefPrivateleaseRequest()
  5926.     {
  5927.         return $this->lef_privatelease_request;
  5928.     }
  5929.     
  5930.     /**
  5931.      * Set lef private lease active
  5932.      *
  5933.      * @param string $lefPrivateleaseRequest
  5934.      * @return Settings
  5935.      */
  5936.     public function setLefPrivateleaseRequest($lefPrivateleaseRequest)
  5937.     {
  5938.         $this->lef_privatelease_request $lefPrivateleaseRequest;
  5939.         return $this;
  5940.     }
  5941.     /**
  5942.      * Get lef forms active
  5943.      *
  5944.      * @return string
  5945.      */
  5946.     public function getLefFormsRequest()
  5947.     {
  5948.         return $this->lef_forms_request;
  5949.     }
  5950.     
  5951.     /**
  5952.      * Set lef offers active
  5953.      *
  5954.      * @param string $lefFormsRequest
  5955.      * @return Settings
  5956.      */
  5957.     public function setLefOfferRequest($lefOfferRequest)
  5958.     {
  5959.         $this->lef_offer_request $lefOfferRequest;
  5960.         return $this;
  5961.     }
  5962.     /**
  5963.      * Get lef offers active
  5964.      *
  5965.      * @return string
  5966.      */
  5967.     public function getLefOfferRequest()
  5968.     {
  5969.         return $this->lef_offer_request;
  5970.     }
  5971.     
  5972.     /**
  5973.      * Set lef testdrive active
  5974.      *
  5975.      * @param string $lefTestdriveRequest
  5976.      * @return Settings
  5977.      */
  5978.     public function setLefTestdriveRequest($lefTestdriveRequest)
  5979.     {
  5980.         $this->lef_testdrive_request $lefTestdriveRequest;
  5981.         return $this;
  5982.     }
  5983.     /**
  5984.      * Get lef testdrive active
  5985.      *
  5986.      * @return string
  5987.      */
  5988.     public function getLefTestdriveRequest()
  5989.     {
  5990.         return $this->lef_testdrive_request;
  5991.     }
  5992.     /**
  5993.      * @return bool|null
  5994.      */
  5995.     public function isHummessengerApiEnabled()
  5996.     {
  5997.         return $this->Hummessenger_api_enabled;
  5998.     }
  5999.     /**
  6000.      * @param bool $Hummessenger_api_enabled
  6001.      */
  6002.     public function setHummessengerApiEnabled(bool $Hummessenger_api_enabled): void
  6003.     {
  6004.         $this->Hummessenger_api_enabled $Hummessenger_api_enabled;
  6005.     }
  6006.     /**
  6007.      * @return string|null
  6008.      */
  6009.     public function getHummessengerApiUrl()
  6010.     {
  6011.         return $this->Hummessenger_api_url;
  6012.     }
  6013.     /**
  6014.      * @param string $Hummessenger_api_url
  6015.      */
  6016.     public function setHummessengerApiUrl(string $Hummessenger_api_url): void
  6017.     {
  6018.         $this->Hummessenger_api_url $Hummessenger_api_url;
  6019.     }
  6020.     /**
  6021.      * @return string|null
  6022.      */
  6023.     public function getHummessengerApiKey()
  6024.     {
  6025.         return $this->Hummessenger_api_key;
  6026.     }
  6027.     /**
  6028.      * @param string $Hummessenger_api_key
  6029.      */
  6030.     public function setHummessengerApiKey(string $Hummessenger_api_key): void
  6031.     {
  6032.         $this->Hummessenger_api_key $Hummessenger_api_key;
  6033.     }
  6034.     
  6035.     /**
  6036.      * set webshop is catalog.
  6037.      *
  6038.      * @return settings
  6039.      */
  6040.     public function setIsCatalog(bool $isCatalog): self{
  6041.                                                      $this->is_catalog $isCatalog;
  6042.                                              
  6043.                                                      return $this;
  6044.                                                  }
  6045.     
  6046.     /**
  6047.      * Get webshop is catalog
  6048.      *
  6049.      * @return bool
  6050.      */
  6051.     public function getIsCatalog(): bool{
  6052.                                                      return (empty($this->is_catalog) ? false$this->is_catalog);
  6053.                                                  }
  6054.     public function getOpenaiKey(): ?string
  6055.     {
  6056.         return $this->openai_key;
  6057.     }
  6058.     public function setOpenaiKey(?string $openai_key): self
  6059.     {
  6060.         $this->openai_key $openai_key;
  6061.         return $this;
  6062.     }
  6063.     public function getOpenaiModel(): ?string
  6064.     {
  6065.         return $this->openai_model;
  6066.     }
  6067.     public function setOpenaiModel(?string $openai_model): self
  6068.     {
  6069.         $this->openai_model $openai_model;
  6070.         return $this;
  6071.     }
  6072.     public function getOpenaiTemp(): ?float
  6073.     {
  6074.         return $this->openai_temp;
  6075.     }
  6076.     public function setOpenaiTemp(?float $openai_temp): self
  6077.     {
  6078.         $this->openai_temp $openai_temp;
  6079.         return $this;
  6080.     }
  6081.     public function getOpenaiStartprompt(): ?string
  6082.     {
  6083.         return $this->openai_startprompt;
  6084.     }
  6085.     public function setOpenaiStartprompt(?string $openai_startprompt): self
  6086.     {
  6087.         $this->openai_startprompt $openai_startprompt;
  6088.         return $this;
  6089.     }
  6090. }