src/CoreBundle/Entity/Configuration.php line 17

Open in your IDE?
  1. <?php
  2. namespace Core\Entity;
  3. use Core\Entity\Traits\EntityTrait;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\HttpFoundation\File\File;
  6. use Vich\UploaderBundle\Mapping\Annotation as Vich;
  7. /**
  8.  * Configuration générale de l'application
  9.  *
  10.  * @Vich\Uploadable
  11.  * @ORM\Entity(repositoryClass="Core\Repository\ConfigurationRepository")
  12.  * @ORM\Table(name="core_configuration")
  13.  */
  14. class Configuration
  15. {
  16.     use EntityTrait {
  17.         EntityTrait::__construct as private __entityConstruct;
  18.     }
  19.     /**
  20.      * Désignation de l'application
  21.      *
  22.      * @ORM\Column(type="string", length=255, nullable=true)
  23.      */
  24.     private $sitename;
  25.     /**
  26.      * Nom de domaine de l'application
  27.      *
  28.      * @ORM\Column(type="string", length=255, nullable=true)
  29.      */
  30.     private $domain;
  31.     /**
  32.      * Nom du logo de l'application
  33.      *
  34.      * @ORM\Column(type="string", length=255, nullable=true)
  35.      * @var string
  36.      */
  37.     private $organizationLogo;
  38.     /**
  39.      * Fichier du logo de l'application
  40.      *
  41.      * @Vich\UploadableField(mapping="images", fileNameProperty="organizationLogo")
  42.      * @var File
  43.      */
  44.     private $organizationLogoFile;
  45.     /**
  46.      * @ORM\Column(type="string", length=255, nullable=true)
  47.      */
  48.     private $organization_name;
  49.     /**
  50.      * @ORM\Column(type="string", length=255, nullable=true)
  51.      */
  52.     private $organization_price_range;
  53.     /**
  54.      * @ORM\Column(type="text",  nullable=true)
  55.      */
  56.     private $organization_description;
  57.     /**
  58.      * @ORM\Column(type="string", length=255, nullable=true)
  59.      */
  60.     private $organization_url;
  61.     /**
  62.      * @ORM\Column(type="string", length=255, nullable=true)
  63.      */
  64.     private $organization_phone;
  65.     /**
  66.      * @ORM\Column(type="string", length=255, nullable=true)
  67.      */
  68.     private $organization_fax;
  69.     /**
  70.      * @ORM\Column(type="string", length=255, nullable=true)
  71.      */
  72.     private $organization_open_hours_1;
  73.     /**
  74.      * @ORM\Column(type="string", length=255, nullable=true)
  75.      */
  76.     private $organization_open_hours_2;
  77.     /**
  78.      * @ORM\Column(type="string", length=255, nullable=true)
  79.      */
  80.     private $organization_open_hours_3;
  81.     /**
  82.      * @ORM\Column(type="string", length=255, nullable=true)
  83.      */
  84.     private $organization_open_hours_4;
  85.     /**
  86.      * @ORM\Column(type="string", length=255, nullable=true)
  87.      */
  88.     private $organization_open_hours_5;
  89.     /**
  90.      * @ORM\Column(type="string", length=255, nullable=true)
  91.      */
  92.     private $organization_open_hours_6;
  93.     /**
  94.      * @ORM\Column(type="string", length=255, nullable=true)
  95.      */
  96.     private $organization_open_hours_7;
  97.     /**
  98.      * @ORM\Column(type="string", length=255, nullable=true)
  99.      */
  100.     private $organization_email;
  101.     /**
  102.      * @ORM\Column(type="string", length=255, nullable=true)
  103.      */
  104.     private $organization_address_street;
  105.     /**
  106.      * @ORM\Column(type="string", length=255, nullable=true)
  107.      */
  108.     private $organization_address_postcode;
  109.     /**
  110.      * @ORM\Column(type="string", length=255, nullable=true)
  111.      */
  112.     private $organization_address_city;
  113.     /**
  114.      * Adresse email de la boutique
  115.      *
  116.      * @ORM\Column(type="string", length=255, nullable=true)
  117.      */
  118.     private $email;
  119.     /**
  120.      * Activation du suivie de bugs
  121.      *
  122.      * @ORM\Column(type="boolean", nullable=true)
  123.      */
  124.     private $debug;
  125.     /**
  126.      * Image de la catégorie
  127.      *
  128.      * @ORM\Column(type="string", length=255, nullable=true)
  129.      * @var string
  130.      */
  131.     private $logo;
  132.     /**
  133.      * @Vich\UploadableField(mapping="images", fileNameProperty="logo")
  134.      * @var File
  135.      */
  136.     private $logoFile;
  137.     /**
  138.      * Désignation du type
  139.      *
  140.      * @ORM\Column(type="string", length=255, nullable=true)
  141.      */
  142.     private $google_analytics;
  143.     /**
  144.      * Désignation du type
  145.      *
  146.      * @ORM\Column(type="string", length=255, nullable=true)
  147.      */
  148.     private $add_this;
  149.     /**
  150.      * Désignation du type
  151.      *
  152.      * @ORM\Column(type="string", length=255, nullable=true)
  153.      */
  154.     private $pixel_facebook;
  155.     /**
  156.      * Désignation du type
  157.      *
  158.      * @ORM\Column(type="string", length=255, nullable=true)
  159.      */
  160.     private $recaptcha_version;
  161.     /**
  162.      * Désignation du type
  163.      *
  164.      * @ORM\Column(type="string", length=255, nullable=true)
  165.      */
  166.     private $recaptcha_score;
  167.     /**
  168.      * Désignation du type
  169.      *
  170.      * @ORM\Column(type="string", length=255, nullable=true)
  171.      */
  172.     private $recaptcha_client;
  173.     /**
  174.      * Désignation du type
  175.      *
  176.      * @ORM\Column(type="string", length=255, nullable=true)
  177.      */
  178.     private $recaptcha_server;
  179.     /**
  180.      * Désignation du type
  181.      *
  182.      * @ORM\Column(type="string", length=255, nullable=true)
  183.      */
  184.     private $recaptcha_hostname;
  185.     /**
  186.      * @ORM\Column(type="string", length=255, nullable=true)
  187.      */
  188.     private $sn_facebook;
  189.     /**
  190.      * @ORM\Column(type="string", length=255, nullable=true)
  191.      */
  192.     private $sn_twitter;
  193.     /**
  194.      * @ORM\Column(type="string", length=255, nullable=true)
  195.      */
  196.     private $sn_youtube;
  197.     /**
  198.      * @ORM\Column(type="string", length=255, nullable=true)
  199.      */
  200.     private $sn_instagram;
  201.     /**
  202.      * Active la maintenance de l'application
  203.      *
  204.      * @ORM\Column(type="boolean")
  205.      */
  206.     private $use_maintenance;
  207.     /**
  208.      * Constructeur
  209.      * @throws \Exception
  210.      */
  211.     public function __construct()
  212.     {
  213.         $this->__entityConstruct();
  214.     }
  215.     /**
  216.      * @return mixed
  217.      */
  218.     public function getDebug()
  219.     {
  220.         return $this->debug;
  221.     }
  222.     /**
  223.      * @param mixed $debug
  224.      */
  225.     public function setDebug($debug): void
  226.     {
  227.         $this->debug $debug;
  228.     }
  229.     /**
  230.      * @return mixed
  231.      */
  232.     public function getEmail()
  233.     {
  234.         return $this->email;
  235.     }
  236.     /**
  237.      * @param mixed $email
  238.      */
  239.     public function setEmail($email): void
  240.     {
  241.         $this->email $email;
  242.     }
  243.     /**
  244.      * @return mixed
  245.      */
  246.     public function getSnFacebook()
  247.     {
  248.         return $this->sn_facebook;
  249.     }
  250.     /**
  251.      * @param mixed $sn_facebook
  252.      */
  253.     public function setSnFacebook($sn_facebook): void
  254.     {
  255.         $this->sn_facebook $sn_facebook;
  256.     }
  257.     /**
  258.      * @return mixed
  259.      */
  260.     public function getSnTwitter()
  261.     {
  262.         return $this->sn_twitter;
  263.     }
  264.     /**
  265.      * @param mixed $sn_twitter
  266.      */
  267.     public function setSnTwitter($sn_twitter): void
  268.     {
  269.         $this->sn_twitter $sn_twitter;
  270.     }
  271.     /**
  272.      * @return mixed
  273.      */
  274.     public function getSnYoutube()
  275.     {
  276.         return $this->sn_youtube;
  277.     }
  278.     /**
  279.      * @param mixed $sn_youtube
  280.      */
  281.     public function setSnYoutube($sn_youtube): void
  282.     {
  283.         $this->sn_youtube $sn_youtube;
  284.     }
  285.     /**
  286.      * @return mixed
  287.      */
  288.     public function getSnInstagram()
  289.     {
  290.         return $this->sn_instagram;
  291.     }
  292.     /**
  293.      * @param mixed $sn_instagram
  294.      */
  295.     public function setSnInstagram($sn_instagram): void
  296.     {
  297.         $this->sn_instagram $sn_instagram;
  298.     }
  299.     /**
  300.      * @return mixed
  301.      */
  302.     public function getUseMaintenance()
  303.     {
  304.         return $this->use_maintenance;
  305.     }
  306.     /**
  307.      * @param mixed $use_maintenance
  308.      */
  309.     public function setUseMaintenance($use_maintenance): void
  310.     {
  311.         $this->use_maintenance $use_maintenance;
  312.     }
  313.     /**
  314.      * @return mixed
  315.      */
  316.     public function getSitename()
  317.     {
  318.         return $this->sitename;
  319.     }
  320.     /**
  321.      * @param mixed $sitename
  322.      */
  323.     public function setSitename($sitename): void
  324.     {
  325.         $this->sitename $sitename;
  326.     }
  327.     /**
  328.      * @return mixed
  329.      */
  330.     public function getDomain()
  331.     {
  332.         return $this->domain;
  333.     }
  334.     /**
  335.      * @param mixed $domain
  336.      */
  337.     public function setDomain($domain): void
  338.     {
  339.         $this->domain $domain;
  340.     }
  341.     /**
  342.      * @return string
  343.      */
  344.     public function getLogo()
  345.     {
  346.         return $this->logo;
  347.     }
  348.     /**
  349.      * @param string $logo
  350.      */
  351.     public function setLogo(string $logo)
  352.     {
  353.         $this->logo $logo;
  354.     }
  355.     /**
  356.      * @return File
  357.      */
  358.     public function getLogoFile()
  359.     {
  360.         return $this->logoFile;
  361.     }
  362.     /**
  363.      * @param File $logoFile
  364.      */
  365.     public function setLogoFile(File $logoFile null)
  366.     {
  367.         $this->logoFile $logoFile;
  368.         if ($logoFile) {
  369.             $this->setUpdatedAt(new \DateTime('now'));
  370.         }
  371.     }
  372.     /**
  373.      * @return mixed
  374.      */
  375.     public function getRecaptchaScore()
  376.     {
  377.         return $this->recaptcha_score;
  378.     }
  379.     /**
  380.      * @param mixed $recaptcha_score
  381.      */
  382.     public function setRecaptchaScore($recaptcha_score)
  383.     {
  384.         $this->recaptcha_score $recaptcha_score;
  385.     }
  386.     /**
  387.      * @return mixed
  388.      */
  389.     public function getRecaptchaVersion()
  390.     {
  391.         return $this->recaptcha_version;
  392.     }
  393.     /**
  394.      * @param mixed $recaptcha_version
  395.      */
  396.     public function setRecaptchaVersion($recaptcha_version)
  397.     {
  398.         $this->recaptcha_version $recaptcha_version;
  399.     }
  400.     /**
  401.      * @return mixed
  402.      */
  403.     public function getRecaptchaHostname()
  404.     {
  405.         return $this->recaptcha_hostname;
  406.     }
  407.     /**
  408.      * @param mixed $recaptcha_hostname
  409.      */
  410.     public function setRecaptchaHostname($recaptcha_hostname)
  411.     {
  412.         $this->recaptcha_hostname $recaptcha_hostname;
  413.     }
  414.     /**
  415.      * @return mixed
  416.      */
  417.     public function getGoogleAnalytics()
  418.     {
  419.         return $this->google_analytics;
  420.     }
  421.     /**
  422.      * @param mixed $google_analytics
  423.      */
  424.     public function setGoogleAnalytics($google_analytics)
  425.     {
  426.         $this->google_analytics $google_analytics;
  427.     }
  428.     /**
  429.      * @return mixed
  430.      */
  431.     public function getAddThis()
  432.     {
  433.         return $this->add_this;
  434.     }
  435.     /**
  436.      * @param mixed $add_this
  437.      */
  438.     public function setAddThis($add_this): void
  439.     {
  440.         $this->add_this $add_this;
  441.     }
  442.     /**
  443.      * @return mixed
  444.      */
  445.     public function getPixelFacebook()
  446.     {
  447.         return $this->pixel_facebook;
  448.     }
  449.     /**
  450.      * @param mixed $pixel_facebook
  451.      */
  452.     public function setPixelFacebook($pixel_facebook): void
  453.     {
  454.         $this->pixel_facebook $pixel_facebook;
  455.     }
  456.     /**
  457.      * @return mixed
  458.      */
  459.     public function getRecaptchaClient()
  460.     {
  461.         return $this->recaptcha_client;
  462.     }
  463.     /**
  464.      * @param mixed $recaptcha_client
  465.      */
  466.     public function setRecaptchaClient($recaptcha_client): void
  467.     {
  468.         $this->recaptcha_client $recaptcha_client;
  469.     }
  470.     /**
  471.      * @return mixed
  472.      */
  473.     public function getRecaptchaServer()
  474.     {
  475.         return $this->recaptcha_server;
  476.     }
  477.     /**
  478.      * @param mixed $recaptcha_server
  479.      */
  480.     public function setRecaptchaServer($recaptcha_server): void
  481.     {
  482.         $this->recaptcha_server $recaptcha_server;
  483.     }
  484.     /**
  485.      * @return mixed
  486.      */
  487.     public function getOrganizationName()
  488.     {
  489.         return $this->organization_name;
  490.     }
  491.     /**
  492.      * @param mixed $organization_name
  493.      */
  494.     public function setOrganizationName($organization_name): void
  495.     {
  496.         $this->organization_name $organization_name;
  497.     }
  498.     /**
  499.      * @return mixed
  500.      */
  501.     public function getOrganizationPhone()
  502.     {
  503.         return $this->organization_phone;
  504.     }
  505.     /**
  506.      * @param mixed $organization_phone
  507.      */
  508.     public function setOrganizationPhone($organization_phone): void
  509.     {
  510.         $this->organization_phone $organization_phone;
  511.     }
  512.     /**
  513.      * @return mixed
  514.      */
  515.     public function getOrganizationFax()
  516.     {
  517.         return $this->organization_fax;
  518.     }
  519.     /**
  520.      * @param mixed $organization_fax
  521.      */
  522.     public function setOrganizationFax($organization_fax): void
  523.     {
  524.         $this->organization_fax $organization_fax;
  525.     }
  526.     /**
  527.      * @return mixed
  528.      */
  529.     public function getOrganizationEmail()
  530.     {
  531.         return $this->organization_email;
  532.     }
  533.     /**
  534.      * @param mixed $organization_email
  535.      */
  536.     public function setOrganizationEmail($organization_email): void
  537.     {
  538.         $this->organization_email $organization_email;
  539.     }
  540.     /**
  541.      * @return mixed
  542.      */
  543.     public function getOrganizationAddressStreet()
  544.     {
  545.         return $this->organization_address_street;
  546.     }
  547.     /**
  548.      * @param mixed $organization_address_street
  549.      */
  550.     public function setOrganizationAddressStreet($organization_address_street): void
  551.     {
  552.         $this->organization_address_street $organization_address_street;
  553.     }
  554.     /**
  555.      * @return mixed
  556.      */
  557.     public function getOrganizationAddressPostcode()
  558.     {
  559.         return $this->organization_address_postcode;
  560.     }
  561.     /**
  562.      * @param mixed $organization_address_postcode
  563.      */
  564.     public function setOrganizationAddressPostcode($organization_address_postcode): void
  565.     {
  566.         $this->organization_address_postcode $organization_address_postcode;
  567.     }
  568.     /**
  569.      * @return mixed
  570.      */
  571.     public function getOrganizationAddressCity()
  572.     {
  573.         return $this->organization_address_city;
  574.     }
  575.     /**
  576.      * @param mixed $organization_address_city
  577.      */
  578.     public function setOrganizationAddressCity($organization_address_city): void
  579.     {
  580.         $this->organization_address_city $organization_address_city;
  581.     }
  582.     /**
  583.      * @return mixed
  584.      */
  585.     public function getOrganizationOpenHours1()
  586.     {
  587.         return $this->organization_open_hours_1;
  588.     }
  589.     /**
  590.      * @param mixed $organization_open_hours_1
  591.      */
  592.     public function setOrganizationOpenHours1($organization_open_hours_1): void
  593.     {
  594.         $this->organization_open_hours_1 $organization_open_hours_1;
  595.     }
  596.     /**
  597.      * @return mixed
  598.      */
  599.     public function getOrganizationOpenHours2()
  600.     {
  601.         return $this->organization_open_hours_2;
  602.     }
  603.     /**
  604.      * @param mixed $organization_open_hours_2
  605.      */
  606.     public function setOrganizationOpenHours2($organization_open_hours_2): void
  607.     {
  608.         $this->organization_open_hours_2 $organization_open_hours_2;
  609.     }
  610.     /**
  611.      * @return mixed
  612.      */
  613.     public function getOrganizationOpenHours3()
  614.     {
  615.         return $this->organization_open_hours_3;
  616.     }
  617.     /**
  618.      * @param mixed $organization_open_hours_3
  619.      */
  620.     public function setOrganizationOpenHours3($organization_open_hours_3): void
  621.     {
  622.         $this->organization_open_hours_3 $organization_open_hours_3;
  623.     }
  624.     /**
  625.      * @return mixed
  626.      */
  627.     public function getOrganizationOpenHours4()
  628.     {
  629.         return $this->organization_open_hours_4;
  630.     }
  631.     /**
  632.      * @param mixed $organization_open_hours_4
  633.      */
  634.     public function setOrganizationOpenHours4($organization_open_hours_4): void
  635.     {
  636.         $this->organization_open_hours_4 $organization_open_hours_4;
  637.     }
  638.     /**
  639.      * @return mixed
  640.      */
  641.     public function getOrganizationOpenHours5()
  642.     {
  643.         return $this->organization_open_hours_5;
  644.     }
  645.     /**
  646.      * @param mixed $organization_open_hours_5
  647.      */
  648.     public function setOrganizationOpenHours5($organization_open_hours_5): void
  649.     {
  650.         $this->organization_open_hours_5 $organization_open_hours_5;
  651.     }
  652.     /**
  653.      * @return mixed
  654.      */
  655.     public function getOrganizationOpenHours6()
  656.     {
  657.         return $this->organization_open_hours_6;
  658.     }
  659.     /**
  660.      * @param mixed $organization_open_hours_6
  661.      */
  662.     public function setOrganizationOpenHours6($organization_open_hours_6): void
  663.     {
  664.         $this->organization_open_hours_6 $organization_open_hours_6;
  665.     }
  666.     /**
  667.      * @return mixed
  668.      */
  669.     public function getOrganizationOpenHours7()
  670.     {
  671.         return $this->organization_open_hours_7;
  672.     }
  673.     /**
  674.      * @param mixed $organization_open_hours_7
  675.      */
  676.     public function setOrganizationOpenHours7($organization_open_hours_7): void
  677.     {
  678.         $this->organization_open_hours_7 $organization_open_hours_7;
  679.     }
  680.     /**
  681.      * @return string
  682.      */
  683.     public function getOrganizationLogo()
  684.     {
  685.         return $this->organizationLogo;
  686.     }
  687.     /**
  688.      * @param string $organizationLogo
  689.      */
  690.     public function setOrganizationLogo($organizationLogo)
  691.     {
  692.         $this->organizationLogo $organizationLogo;
  693.     }
  694.     /**
  695.      * @return File
  696.      */
  697.     public function getOrganizationLogoFile()
  698.     {
  699.         return $this->organizationLogoFile;
  700.     }
  701.     /**
  702.      * @param File $organizationLogoFile
  703.      */
  704.     public function setOrganizationLogoFile($organizationLogoFile)
  705.     {
  706.         $this->organizationLogoFile $organizationLogoFile;
  707.         if ($organizationLogoFile) {
  708.             $this->setUpdatedAt(new \DateTime('now'));
  709.         }
  710.     }
  711.     /**
  712.      * @return mixed
  713.      */
  714.     public function getOrganizationUrl()
  715.     {
  716.         return $this->organization_url;
  717.     }
  718.     /**
  719.      * @param mixed $organization_url
  720.      */
  721.     public function setOrganizationUrl($organization_url): void
  722.     {
  723.         $this->organization_url $organization_url;
  724.     }
  725.     /**
  726.      * @return mixed
  727.      */
  728.     public function getOrganizationDescription()
  729.     {
  730.         return $this->organization_description;
  731.     }
  732.     /**
  733.      * @param mixed $organization_description
  734.      */
  735.     public function setOrganizationDescription($organization_description): void
  736.     {
  737.         $this->organization_description $organization_description;
  738.     }
  739.     /**
  740.      * @return mixed
  741.      */
  742.     public function getOrganizationPriceRange()
  743.     {
  744.         return $this->organization_price_range;
  745.     }
  746.     /**
  747.      * @param mixed $organization_price_range
  748.      */
  749.     public function setOrganizationPriceRange($organization_price_range): void
  750.     {
  751.         $this->organization_price_range $organization_price_range;
  752.     }
  753. }