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.      * @ORM\Column(type="string", length=255, nullable=true)
  203.      */
  204.     private $sn_linkedin;
  205.     /**
  206.      * Active la maintenance de l'application
  207.      *
  208.      * @ORM\Column(type="boolean")
  209.      */
  210.     private $use_maintenance;
  211.     /**
  212.      * Désignation de l'application
  213.      *
  214.      * @ORM\Column(type="boolean",  nullable=true)
  215.      */
  216.     private $use_filigrane;
  217.     /**
  218.      * Image de la catégorie
  219.      *
  220.      * @ORM\Column(type="string", length=255, nullable=true)
  221.      * @var string
  222.      */
  223.     private $filigrane;
  224.     /**
  225.      * @Vich\UploadableField(mapping="images", fileNameProperty="filigrane")
  226.      * @var File
  227.      */
  228.     private $filigraneFile;
  229.     /**
  230.      * Constructeur
  231.      * @throws \Exception
  232.      */
  233.     public function __construct()
  234.     {
  235.         $this->__entityConstruct();
  236.     }
  237.     /**
  238.      * @return mixed
  239.      */
  240.     public function getDebug()
  241.     {
  242.         return $this->debug;
  243.     }
  244.     /**
  245.      * @param mixed $debug
  246.      */
  247.     public function setDebug($debug)
  248.     {
  249.         $this->debug $debug;
  250.     }
  251.     /**
  252.      * @return File
  253.      */
  254.     public function getFiligraneFile()
  255.     {
  256.         return $this->filigraneFile;
  257.     }
  258.     /**
  259.      * @param File $filigraneFile
  260.      */
  261.     public function setFiligraneFile($filigraneFile)
  262.     {
  263.         $this->filigraneFile $filigraneFile;
  264.         if ($filigraneFile) {
  265.             $this->setUpdatedAt(new \DateTime('now'));
  266.         }
  267.     }
  268.     /**
  269.      * @return mixed
  270.      */
  271.     public function getUseFiligrane()
  272.     {
  273.         return $this->use_filigrane;
  274.     }
  275.     /**
  276.      * @param mixed $use_filigrane
  277.      */
  278.     public function setUseFiligrane($use_filigrane)
  279.     {
  280.         $this->use_filigrane $use_filigrane;
  281.     }
  282.     /**
  283.      * @return string
  284.      */
  285.     public function getFiligrane()
  286.     {
  287.         return $this->filigrane;
  288.     }
  289.     /**
  290.      * @param string $filigrane
  291.      */
  292.     public function setFiligrane$filigrane)
  293.     {
  294.         $this->filigrane $filigrane;
  295.     }
  296.     /**
  297.      * @return mixed
  298.      */
  299.     public function getEmail()
  300.     {
  301.         return $this->email;
  302.     }
  303.     /**
  304.      * @param mixed $email
  305.      */
  306.     public function setEmail($email): void
  307.     {
  308.         $this->email $email;
  309.     }
  310.     /**
  311.      * @return mixed
  312.      */
  313.     public function getSnFacebook()
  314.     {
  315.         return $this->sn_facebook;
  316.     }
  317.     /**
  318.      * @param mixed $sn_facebook
  319.      */
  320.     public function setSnFacebook($sn_facebook): void
  321.     {
  322.         $this->sn_facebook $sn_facebook;
  323.     }
  324.     /**
  325.      * @return mixed
  326.      */
  327.     public function getSnTwitter()
  328.     {
  329.         return $this->sn_twitter;
  330.     }
  331.     /**
  332.      * @param mixed $sn_twitter
  333.      */
  334.     public function setSnTwitter($sn_twitter): void
  335.     {
  336.         $this->sn_twitter $sn_twitter;
  337.     }
  338.     /**
  339.      * @return mixed
  340.      */
  341.     public function getSnYoutube()
  342.     {
  343.         return $this->sn_youtube;
  344.     }
  345.     /**
  346.      * @param mixed $sn_youtube
  347.      */
  348.     public function setSnYoutube($sn_youtube): void
  349.     {
  350.         $this->sn_youtube $sn_youtube;
  351.     }
  352.     /**
  353.      * @return mixed
  354.      */
  355.     public function getSnInstagram()
  356.     {
  357.         return $this->sn_instagram;
  358.     }
  359.     /**
  360.      * @param mixed $sn_instagram
  361.      */
  362.     public function setSnInstagram($sn_instagram): void
  363.     {
  364.         $this->sn_instagram $sn_instagram;
  365.     }
  366.     /**
  367.      * @return mixed
  368.      */
  369.     public function getUseMaintenance()
  370.     {
  371.         return $this->use_maintenance;
  372.     }
  373.     /**
  374.      * @param mixed $use_maintenance
  375.      */
  376.     public function setUseMaintenance($use_maintenance): void
  377.     {
  378.         $this->use_maintenance $use_maintenance;
  379.     }
  380.     /**
  381.      * @return mixed
  382.      */
  383.     public function getSitename()
  384.     {
  385.         return $this->sitename;
  386.     }
  387.     /**
  388.      * @param mixed $sitename
  389.      */
  390.     public function setSitename($sitename): void
  391.     {
  392.         $this->sitename $sitename;
  393.     }
  394.     /**
  395.      * @return mixed
  396.      */
  397.     public function getDomain()
  398.     {
  399.         return $this->domain;
  400.     }
  401.     /**
  402.      * @param mixed $domain
  403.      */
  404.     public function setDomain($domain): void
  405.     {
  406.         $this->domain $domain;
  407.     }
  408.     /**
  409.      * @return string
  410.      */
  411.     public function getLogo()
  412.     {
  413.         return $this->logo;
  414.     }
  415.     /**
  416.      * @param string $logo
  417.      */
  418.     public function setLogo(string $logo)
  419.     {
  420.         $this->logo $logo;
  421.     }
  422.     /**
  423.      * @return File
  424.      */
  425.     public function getLogoFile()
  426.     {
  427.         return $this->logoFile;
  428.     }
  429.     /**
  430.      * @param File $logoFile
  431.      */
  432.     public function setLogoFile(File $logoFile null)
  433.     {
  434.         $this->logoFile $logoFile;
  435.         if ($logoFile) {
  436.             $this->setUpdatedAt(new \DateTime('now'));
  437.         }
  438.     }
  439.     /**
  440.      * @return mixed
  441.      */
  442.     public function getRecaptchaScore()
  443.     {
  444.         return $this->recaptcha_score;
  445.     }
  446.     /**
  447.      * @param mixed $recaptcha_score
  448.      */
  449.     public function setRecaptchaScore($recaptcha_score)
  450.     {
  451.         $this->recaptcha_score $recaptcha_score;
  452.     }
  453.     /**
  454.      * @return mixed
  455.      */
  456.     public function getRecaptchaVersion()
  457.     {
  458.         return $this->recaptcha_version;
  459.     }
  460.     /**
  461.      * @param mixed $recaptcha_version
  462.      */
  463.     public function setRecaptchaVersion($recaptcha_version)
  464.     {
  465.         $this->recaptcha_version $recaptcha_version;
  466.     }
  467.     /**
  468.      * @return mixed
  469.      */
  470.     public function getRecaptchaHostname()
  471.     {
  472.         return $this->recaptcha_hostname;
  473.     }
  474.     /**
  475.      * @param mixed $recaptcha_hostname
  476.      */
  477.     public function setRecaptchaHostname($recaptcha_hostname)
  478.     {
  479.         $this->recaptcha_hostname $recaptcha_hostname;
  480.     }
  481.     /**
  482.      * @return mixed
  483.      */
  484.     public function getGoogleAnalytics()
  485.     {
  486.         return $this->google_analytics;
  487.     }
  488.     /**
  489.      * @param mixed $google_analytics
  490.      */
  491.     public function setGoogleAnalytics($google_analytics)
  492.     {
  493.         $this->google_analytics $google_analytics;
  494.     }
  495.     /**
  496.      * @return mixed
  497.      */
  498.     public function getAddThis()
  499.     {
  500.         return $this->add_this;
  501.     }
  502.     /**
  503.      * @param mixed $add_this
  504.      */
  505.     public function setAddThis($add_this): void
  506.     {
  507.         $this->add_this $add_this;
  508.     }
  509.     /**
  510.      * @return mixed
  511.      */
  512.     public function getPixelFacebook()
  513.     {
  514.         return $this->pixel_facebook;
  515.     }
  516.     /**
  517.      * @param mixed $pixel_facebook
  518.      */
  519.     public function setPixelFacebook($pixel_facebook): void
  520.     {
  521.         $this->pixel_facebook $pixel_facebook;
  522.     }
  523.     /**
  524.      * @return mixed
  525.      */
  526.     public function getRecaptchaClient()
  527.     {
  528.         return $this->recaptcha_client;
  529.     }
  530.     /**
  531.      * @param mixed $recaptcha_client
  532.      */
  533.     public function setRecaptchaClient($recaptcha_client): void
  534.     {
  535.         $this->recaptcha_client $recaptcha_client;
  536.     }
  537.     /**
  538.      * @return mixed
  539.      */
  540.     public function getRecaptchaServer()
  541.     {
  542.         return $this->recaptcha_server;
  543.     }
  544.     /**
  545.      * @param mixed $recaptcha_server
  546.      */
  547.     public function setRecaptchaServer($recaptcha_server): void
  548.     {
  549.         $this->recaptcha_server $recaptcha_server;
  550.     }
  551.     /**
  552.      * @return mixed
  553.      */
  554.     public function getOrganizationName()
  555.     {
  556.         return $this->organization_name;
  557.     }
  558.     /**
  559.      * @param mixed $organization_name
  560.      */
  561.     public function setOrganizationName($organization_name): void
  562.     {
  563.         $this->organization_name $organization_name;
  564.     }
  565.     /**
  566.      * @return mixed
  567.      */
  568.     public function getOrganizationPhone()
  569.     {
  570.         return $this->organization_phone;
  571.     }
  572.     /**
  573.      * @param mixed $organization_phone
  574.      */
  575.     public function setOrganizationPhone($organization_phone): void
  576.     {
  577.         $this->organization_phone $organization_phone;
  578.     }
  579.     /**
  580.      * @return mixed
  581.      */
  582.     public function getOrganizationFax()
  583.     {
  584.         return $this->organization_fax;
  585.     }
  586.     /**
  587.      * @param mixed $organization_fax
  588.      */
  589.     public function setOrganizationFax($organization_fax): void
  590.     {
  591.         $this->organization_fax $organization_fax;
  592.     }
  593.     /**
  594.      * @return mixed
  595.      */
  596.     public function getOrganizationEmail()
  597.     {
  598.         return $this->organization_email;
  599.     }
  600.     /**
  601.      * @param mixed $organization_email
  602.      */
  603.     public function setOrganizationEmail($organization_email): void
  604.     {
  605.         $this->organization_email $organization_email;
  606.     }
  607.     /**
  608.      * @return mixed
  609.      */
  610.     public function getOrganizationAddressStreet()
  611.     {
  612.         return $this->organization_address_street;
  613.     }
  614.     /**
  615.      * @param mixed $organization_address_street
  616.      */
  617.     public function setOrganizationAddressStreet($organization_address_street): void
  618.     {
  619.         $this->organization_address_street $organization_address_street;
  620.     }
  621.     /**
  622.      * @return mixed
  623.      */
  624.     public function getOrganizationAddressPostcode()
  625.     {
  626.         return $this->organization_address_postcode;
  627.     }
  628.     /**
  629.      * @param mixed $organization_address_postcode
  630.      */
  631.     public function setOrganizationAddressPostcode($organization_address_postcode): void
  632.     {
  633.         $this->organization_address_postcode $organization_address_postcode;
  634.     }
  635.     /**
  636.      * @return mixed
  637.      */
  638.     public function getOrganizationAddressCity()
  639.     {
  640.         return $this->organization_address_city;
  641.     }
  642.     /**
  643.      * @param mixed $organization_address_city
  644.      */
  645.     public function setOrganizationAddressCity($organization_address_city): void
  646.     {
  647.         $this->organization_address_city $organization_address_city;
  648.     }
  649.     /**
  650.      * @return mixed
  651.      */
  652.     public function getOrganizationOpenHours1()
  653.     {
  654.         return $this->organization_open_hours_1;
  655.     }
  656.     /**
  657.      * @param mixed $organization_open_hours_1
  658.      */
  659.     public function setOrganizationOpenHours1($organization_open_hours_1): void
  660.     {
  661.         $this->organization_open_hours_1 $organization_open_hours_1;
  662.     }
  663.     /**
  664.      * @return mixed
  665.      */
  666.     public function getOrganizationOpenHours2()
  667.     {
  668.         return $this->organization_open_hours_2;
  669.     }
  670.     /**
  671.      * @param mixed $organization_open_hours_2
  672.      */
  673.     public function setOrganizationOpenHours2($organization_open_hours_2): void
  674.     {
  675.         $this->organization_open_hours_2 $organization_open_hours_2;
  676.     }
  677.     /**
  678.      * @return mixed
  679.      */
  680.     public function getOrganizationOpenHours3()
  681.     {
  682.         return $this->organization_open_hours_3;
  683.     }
  684.     /**
  685.      * @param mixed $organization_open_hours_3
  686.      */
  687.     public function setOrganizationOpenHours3($organization_open_hours_3): void
  688.     {
  689.         $this->organization_open_hours_3 $organization_open_hours_3;
  690.     }
  691.     /**
  692.      * @return mixed
  693.      */
  694.     public function getOrganizationOpenHours4()
  695.     {
  696.         return $this->organization_open_hours_4;
  697.     }
  698.     /**
  699.      * @param mixed $organization_open_hours_4
  700.      */
  701.     public function setOrganizationOpenHours4($organization_open_hours_4): void
  702.     {
  703.         $this->organization_open_hours_4 $organization_open_hours_4;
  704.     }
  705.     /**
  706.      * @return mixed
  707.      */
  708.     public function getOrganizationOpenHours5()
  709.     {
  710.         return $this->organization_open_hours_5;
  711.     }
  712.     /**
  713.      * @param mixed $organization_open_hours_5
  714.      */
  715.     public function setOrganizationOpenHours5($organization_open_hours_5): void
  716.     {
  717.         $this->organization_open_hours_5 $organization_open_hours_5;
  718.     }
  719.     /**
  720.      * @return mixed
  721.      */
  722.     public function getOrganizationOpenHours6()
  723.     {
  724.         return $this->organization_open_hours_6;
  725.     }
  726.     /**
  727.      * @param mixed $organization_open_hours_6
  728.      */
  729.     public function setOrganizationOpenHours6($organization_open_hours_6): void
  730.     {
  731.         $this->organization_open_hours_6 $organization_open_hours_6;
  732.     }
  733.     /**
  734.      * @return mixed
  735.      */
  736.     public function getOrganizationOpenHours7()
  737.     {
  738.         return $this->organization_open_hours_7;
  739.     }
  740.     /**
  741.      * @param mixed $organization_open_hours_7
  742.      */
  743.     public function setOrganizationOpenHours7($organization_open_hours_7): void
  744.     {
  745.         $this->organization_open_hours_7 $organization_open_hours_7;
  746.     }
  747.     /**
  748.      * @return string
  749.      */
  750.     public function getOrganizationLogo()
  751.     {
  752.         return $this->organizationLogo;
  753.     }
  754.     /**
  755.      * @param string $organizationLogo
  756.      */
  757.     public function setOrganizationLogo$organizationLogo)
  758.     {
  759.         $this->organizationLogo $organizationLogo;
  760.     }
  761.     /**
  762.      * @return File
  763.      */
  764.     public function getOrganizationLogoFile()
  765.     {
  766.         return $this->organizationLogoFile;
  767.     }
  768.     /**
  769.      * @param File $organizationLogoFile
  770.      */
  771.     public function setOrganizationLogoFile$organizationLogoFile)
  772.     {
  773.         $this->organizationLogoFile $organizationLogoFile;
  774.         if ($organizationLogoFile) {
  775.             $this->setUpdatedAt(new \DateTime('now'));
  776.         }
  777.     }
  778.     /**
  779.      * @return mixed
  780.      */
  781.     public function getOrganizationUrl()
  782.     {
  783.         return $this->organization_url;
  784.     }
  785.     /**
  786.      * @param mixed $organization_url
  787.      */
  788.     public function setOrganizationUrl($organization_url): void
  789.     {
  790.         $this->organization_url $organization_url;
  791.     }
  792.     /**
  793.      * @return mixed
  794.      */
  795.     public function getOrganizationDescription()
  796.     {
  797.         return $this->organization_description;
  798.     }
  799.     /**
  800.      * @param mixed $organization_description
  801.      */
  802.     public function setOrganizationDescription($organization_description): void
  803.     {
  804.         $this->organization_description $organization_description;
  805.     }
  806.     /**
  807.      * @return mixed
  808.      */
  809.     public function getOrganizationPriceRange()
  810.     {
  811.         return $this->organization_price_range;
  812.     }
  813.     /**
  814.      * @param mixed $organization_price_range
  815.      */
  816.     public function setOrganizationPriceRange($organization_price_range): void
  817.     {
  818.         $this->organization_price_range $organization_price_range;
  819.     }
  820.     /**
  821.      * @return mixed
  822.      */
  823.     public function getTotalAmountAssociations()
  824.     {
  825.         return $this->total_amount_associations;
  826.     }
  827.     /**
  828.      * @param mixed $total_amount_associations
  829.      */
  830.     public function setTotalAmountAssociations($total_amount_associations): void
  831.     {
  832.         $this->total_amount_associations $total_amount_associations;
  833.     }
  834.     /**
  835.      * @return mixed
  836.      */
  837.     public function getSnLinkedin()
  838.     {
  839.         return $this->sn_linkedin;
  840.     }
  841.     /**
  842.      * @param mixed $sn_linkedin
  843.      */
  844.     public function setSnLinkedin($sn_linkedin): void
  845.     {
  846.         $this->sn_linkedin $sn_linkedin;
  847.     }
  848. }