vendor/uvdesk/support-center-bundle/Entity/KnowledgebaseWebsite.php line 13

Open in your IDE?
  1. <?php
  2. namespace Webkul\UVDesk\SupportCenterBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * KnowledgebaseWebsite
  6.  * @ORM\Entity(repositoryClass=null)
  7.  * @ORM\HasLifecycleCallbacks
  8.  * @ORM\Table(name="uv_website_knowledgebase")
  9.  */
  10. class KnowledgebaseWebsite
  11. {
  12.     /**
  13.      * @var int
  14.      * @ORM\Id
  15.      * @ORM\Column(type="integer")
  16.      * @ORM\GeneratedValue
  17.      */
  18.     private $id;
  19.     /**
  20.      * @var string
  21.      * @ORM\Column(type="string", length=255)
  22.      */
  23.     private $status;
  24.     /**
  25.      * @var string
  26.      * @ORM\Column(type="string", length=255)
  27.      */
  28.     private $brandColor;
  29.     /**
  30.      * @var string
  31.      * @ORM\Column(type="string", length=255)
  32.      */
  33.     private $pageBackgroundColor;
  34.     /**
  35.      * @var string
  36.      * @ORM\Column(type="string", length=255, nullable=true)
  37.      */
  38.     private $headerBackgroundColor;
  39.     /**
  40.      * @var string
  41.      * @ORM\Column(type="string", length=255, nullable=true)
  42.      */
  43.     private $linkColor;
  44.     /**
  45.      * @var string
  46.      * @ORM\Column(type="string", length=255, nullable=true)
  47.      */
  48.     private $articleTextColor;
  49.     /**
  50.      * @var string
  51.      * @ORM\Column(type="string", length=255, name="ticket_create_option")
  52.      */
  53.     private $ticketCreateOption;
  54.     /**
  55.      * @var string
  56.      * @ORM\Column(type="string", length=1000, name="site_description", nullable=true)
  57.      */
  58.     private $siteDescription;
  59.     /**
  60.      * @var string
  61.      * @ORM\Column(type="text", length=2000, name="meta_description", nullable=true)
  62.      */
  63.     private $metaDescription;
  64.     /**
  65.      * @var string
  66.      * @ORM\Column(type="text", length=2000, name="meta_keywords", nullable=true)
  67.      */
  68.     private $metaKeywords;
  69.     /**
  70.      * @var string
  71.      * @ORM\Column(type="string", length=255, name="homepage_content", nullable=true)
  72.      */
  73.     private $homepageContent;
  74.     /**
  75.      * @var string
  76.      * @ORM\Column(type="text", nullable=true)
  77.      */
  78.     private $whiteList;
  79.     /**
  80.      * @var string
  81.      * @ORM\Column(type="text", nullable=true)
  82.      */
  83.     private $blackList;
  84.     /**
  85.      * @var \DateTime
  86.      * @ORM\Column(type="datetime")
  87.      */
  88.     private $createdAt;
  89.     /**
  90.      * @var \DateTime
  91.      * @ORM\Column(type="datetime")
  92.      */
  93.     private $updatedAt;
  94.     /**
  95.      * @var string
  96.      * @ORM\Column(type="text", nullable=true)
  97.      */
  98.     private $broadcastMessage;
  99.     /**
  100.      * @var bool
  101.      * @ORM\Column(type="boolean")
  102.      */
  103.     private $disableCustomerLogin;
  104.     /**
  105.      * @var string
  106.      * @ORM\Column(type="text", nullable=true)
  107.      */
  108.     private $script;
  109.     /**
  110.      * @var string
  111.      * @ORM\Column(type="text", nullable=true)
  112.      */
  113.     private $customCSS;
  114.     /**
  115.      * @var bool
  116.      * @ORM\Column(type="boolean")
  117.      */
  118.     private $isActive;
  119.     /**
  120.      * @var array
  121.      * @ORM\Column(type="array", nullable=true)
  122.      */
  123.     private $headerLinks;
  124.     /**
  125.      * @var array
  126.      * @ORM\Column(type="array", nullable=true)
  127.      */
  128.     private $footerLinks;
  129.     /**
  130.      * Constructor
  131.      */
  132.     public function __construct()
  133.     {
  134.         $this->website = new \Doctrine\Common\Collections\ArrayCollection();
  135.     }
  136.     /**
  137.      * Get id.
  138.      *
  139.      * @return int
  140.      */
  141.     public function getId()
  142.     {
  143.         return $this->id;
  144.     }
  145.     /**
  146.      * Set status.
  147.      *
  148.      * @param string $status
  149.      *
  150.      * @return KnowledgebaseWebsite
  151.      */
  152.     public function setStatus($status)
  153.     {
  154.         $this->status $status;
  155.         return $this;
  156.     }
  157.     /**
  158.      * Get status.
  159.      *
  160.      * @return string
  161.      */
  162.     public function getStatus()
  163.     {
  164.         return $this->status;
  165.     }
  166.     /**
  167.      * Set brandColor.
  168.      *
  169.      * @param string $brandColor
  170.      *
  171.      * @return KnowledgebaseWebsite
  172.      */
  173.     public function setBrandColor($brandColor)
  174.     {
  175.         $this->brandColor $brandColor;
  176.         return $this;
  177.     }
  178.     /**
  179.      * Get brandColor.
  180.      *
  181.      * @return string
  182.      */
  183.     public function getBrandColor()
  184.     {
  185.         return $this->brandColor;
  186.     }
  187.     /**
  188.      * Set pageBackgroundColor.
  189.      *
  190.      * @param string $pageBackgroundColor
  191.      *
  192.      * @return KnowledgebaseWebsite
  193.      */
  194.     public function setPageBackgroundColor($pageBackgroundColor)
  195.     {
  196.         $this->pageBackgroundColor $pageBackgroundColor;
  197.         return $this;
  198.     }
  199.     /**
  200.      * Get pageBackgroundColor.
  201.      *
  202.      * @return string
  203.      */
  204.     public function getPageBackgroundColor()
  205.     {
  206.         return $this->pageBackgroundColor;
  207.     }
  208.     /**
  209.      * Set headerBackgroundColor.
  210.      *
  211.      * @param string $headerBackgroundColor
  212.      *
  213.      * @return KnowledgebaseWebsite
  214.      */
  215.     public function setHeaderBackgroundColor($headerBackgroundColor)
  216.     {
  217.         $this->headerBackgroundColor $headerBackgroundColor;
  218.         return $this;
  219.     }
  220.     /**
  221.      * Get headerBackgroundColor.
  222.      *
  223.      * @return string
  224.      */
  225.     public function getHeaderBackgroundColor()
  226.     {
  227.         return $this->headerBackgroundColor;
  228.     }
  229.     /**
  230.      * Set headerLinks
  231.      *
  232.      * @param array $headerLinks
  233.      * @return Website
  234.      */
  235.     public function setHeaderLinks($headerLinks)
  236.     {
  237.         $this->headerLinks $headerLinks;
  238.         return $this;
  239.     }
  240.     /**
  241.      * Get headerLinks
  242.      *
  243.      * @return array
  244.      */
  245.     public function getHeaderLinks()
  246.     {
  247.         return $this->headerLinks;
  248.     }
  249.     /**
  250.      * Set footerLinks
  251.      *
  252.      * @param array $footerLinks
  253.      * @return Website
  254.      */
  255.     public function setFooterLinks($footerLinks)
  256.     {
  257.         $this->footerLinks $footerLinks;
  258.         return $this;
  259.     }
  260.     /**
  261.      * Get footerLinks
  262.      *
  263.      * @return array
  264.      */
  265.     public function getFooterLinks()
  266.     {
  267.         return $this->footerLinks;
  268.     }
  269.     /**
  270.      * Set ticketCreateOption.
  271.      *
  272.      * @param string $ticketCreateOption
  273.      *
  274.      * @return KnowledgebaseWebsite
  275.      */
  276.     public function setTicketCreateOption($ticketCreateOption)
  277.     {
  278.         $this->ticketCreateOption $ticketCreateOption;
  279.         return $this;
  280.     }
  281.     /**
  282.      * Get ticketCreateOption.
  283.      *
  284.      * @return string
  285.      */
  286.     public function getTicketCreateOption()
  287.     {
  288.         return $this->ticketCreateOption;
  289.     }
  290.     /**
  291.      * Set createdAt.
  292.      *
  293.      * @param \DateTime $createdAt
  294.      *
  295.      * @return KnowledgebaseWebsite
  296.      */
  297.     public function setCreatedAt($createdAt)
  298.     {
  299.         $this->createdAt $createdAt;
  300.         return $this;
  301.     }
  302.     /**
  303.      * Get createdAt.
  304.      *
  305.      * @return \DateTime
  306.      */
  307.     public function getCreatedAt()
  308.     {
  309.         return $this->createdAt;
  310.     }
  311.     /**
  312.      * Set updatedAt.
  313.      *
  314.      * @param \DateTime $updatedAt
  315.      *
  316.      * @return KnowledgebaseWebsite
  317.      */
  318.     public function setUpdatedAt($updatedAt)
  319.     {
  320.         $this->updatedAt $updatedAt;
  321.         return $this;
  322.     }
  323.     /**
  324.      * Get updatedAt.
  325.      *
  326.      * @return \DateTime
  327.      */
  328.     public function getUpdatedAt()
  329.     {
  330.         return $this->updatedAt;
  331.     }
  332.     /**
  333.      * Set broadcastMessage.
  334.      *
  335.      * @param string $broadcastMessage
  336.      *
  337.      * @return KnowledgebaseWebsite
  338.      */
  339.     public function setBroadcastMessage($broadcastMessage)
  340.     {
  341.         $this->broadcastMessage $broadcastMessage;
  342.         return $this;
  343.     }
  344.     /**
  345.      * Get broadcastMessage.
  346.      *
  347.      * @return string
  348.      */
  349.     public function getBroadcastMessage()
  350.     {
  351.         return $this->broadcastMessage;
  352.     }
  353.     /**
  354.      * @var \Webkul\UVDesk\SupportCenterBundle\Entity\Website
  355.      * @ORM\ManyToOne(targetEntity="Webkul\UVDesk\CoreFrameworkBundle\Entity\Website")
  356.      * @ORM\JoinColumn(name="website", referencedColumnName="id")
  357.      */
  358.     private $website;
  359.     /**
  360.      * Set whiteList
  361.      *
  362.      * @param string $whiteList
  363.      * @return null
  364.      */
  365.     public function setWhiteList($whiteList)
  366.     {
  367.         $this->whiteList $whiteList;
  368.         return $this;
  369.     }
  370.     /**
  371.      * Get whiteList
  372.      *
  373.      * @return string
  374.      */
  375.     public function getWhiteList()
  376.     {
  377.         return $this->whiteList;
  378.     }
  379.     /**
  380.      * Set blackList
  381.      *
  382.      * @param string $blackList
  383.      * @return
  384.      */
  385.     public function setBlackList($blackList)
  386.     {
  387.         $this->blackList $blackList;
  388.         return $this;
  389.     }
  390.     /**
  391.      * Get blackList
  392.      *
  393.      * @return string
  394.      */
  395.     public function getBlackList()
  396.     {
  397.         return $this->blackList;
  398.     }
  399.     /**
  400.      * Set website.
  401.      *
  402.      * @param \Webkul\UVDesk\CoreFrameworkBundle\Entity\Website|null $website
  403.      *
  404.      * @return KnowledgebaseWebsite
  405.      */
  406.     public function setWebsite(\Webkul\UVDesk\CoreFrameworkBundle\Entity\Website $website null)
  407.     {
  408.         $this->website $website;
  409.         return $this;
  410.     }
  411.     /**
  412.      * Get website.
  413.      *
  414.      * @return \Webkul\UVDesk\CoreFrameworkBundle\Entity\Website|null
  415.      */
  416.     public function getWebsite()
  417.     {
  418.         return $this->website;
  419.     }
  420.     /**
  421.      * Set linkColor
  422.      *
  423.      * @param string $linkColor
  424.      * @return Website
  425.      */
  426.     public function setLinkColor($linkColor)
  427.     {
  428.         $this->linkColor $linkColor;
  429.         return $this;
  430.     }
  431.     /**
  432.      * Get linkColor
  433.      *
  434.      * @return string
  435.      */
  436.     public function getLinkColor()
  437.     {
  438.         return $this->linkColor;
  439.     }
  440.     /**
  441.      * Set articleTextColor
  442.      *
  443.      * @param string $articleTextColor
  444.      * @return Website
  445.      */
  446.     public function setArticleTextColor($articleTextColor)
  447.     {
  448.         $this->articleTextColor $articleTextColor;
  449.         return $this;
  450.     }
  451.     /**
  452.      * Get articleTextColor
  453.      *
  454.      * @return string
  455.      */
  456.     public function getArticleTextColor()
  457.     {
  458.         return $this->articleTextColor;
  459.     }
  460.     /**
  461.      * @var string
  462.      * @ORM\Column(type="string", length=255, nullable=true)
  463.      */
  464.     private $bannerBackgroundColor;
  465.     /**
  466.      * Set bannerBackgroundColor
  467.      *
  468.      * @param string $bannerBackgroundColor
  469.      * @return Website
  470.      */
  471.     public function setBannerBackgroundColor($bannerBackgroundColor)
  472.     {
  473.         $this->bannerBackgroundColor $bannerBackgroundColor;
  474.         return $this;
  475.     }
  476.     /**
  477.      * Get bannerBackgroundColor
  478.      *
  479.      * @return string
  480.      */
  481.     public function getBannerBackgroundColor()
  482.     {
  483.         return $this->bannerBackgroundColor;
  484.     }
  485.     /**
  486.      * @var string
  487.      * @ORM\Column(type="string", length=255, nullable=true)
  488.      */
  489.     private $linkHoverColor;
  490.     /**
  491.      * Set linkHoverColor
  492.      *
  493.      * @param string $linkHoverColor
  494.      * @return Website
  495.      */
  496.     public function setLinkHoverColor($linkHoverColor)
  497.     {
  498.         $this->linkHoverColor $linkHoverColor;
  499.         return $this;
  500.     }
  501.     /**
  502.      * Get linkHoverColor
  503.      *
  504.      * @return string
  505.      */
  506.     public function getLinkHoverColor()
  507.     {
  508.         return $this->linkHoverColor;
  509.     }
  510.     /**
  511.      * Set siteDescription
  512.      *
  513.      * @param string $siteDescription
  514.      * @return Website
  515.      */
  516.     public function setSiteDescription($siteDescription)
  517.     {
  518.         $this->siteDescription $siteDescription;
  519.         return $this;
  520.     }
  521.     /**
  522.      * Get siteDescription
  523.      *
  524.      * @return string
  525.      */
  526.     public function getSiteDescription()
  527.     {
  528.         return $this->siteDescription;
  529.     }
  530.     /**
  531.      * Set metaDescription
  532.      *
  533.      * @param string $metaDescription
  534.      * @return Website
  535.      */
  536.     public function setMetaDescription($metaDescription)
  537.     {
  538.         $this->metaDescription $metaDescription;
  539.         return $this;
  540.     }
  541.     /**
  542.      * Get metaDescription
  543.      *
  544.      * @return string
  545.      */
  546.     public function getMetaDescription()
  547.     {
  548.         return $this->metaDescription;
  549.     }
  550.     /**
  551.      * Set homepageContent
  552.      *
  553.      * @param string $homepageContent
  554.      * @return Website
  555.      */
  556.     public function setHomepageContent($homepageContent)
  557.     {
  558.         $this->homepageContent $homepageContent;
  559.         return $this;
  560.     }
  561.     /**
  562.      * Get homepageContent
  563.      *
  564.      * @return string
  565.      */
  566.     public function getHomepageContent()
  567.     {
  568.         return $this->homepageContent;
  569.     }
  570.     /**
  571.      * Set metaKeywords
  572.      *
  573.      * @param string $metaKeywords
  574.      * @return Website
  575.      */
  576.     public function setMetaKeywords($metaKeywords)
  577.     {
  578.         $this->metaKeywords $metaKeywords;
  579.         return $this;
  580.     }
  581.     /**
  582.      * Get metaKeywords
  583.      *
  584.      * @return string
  585.      */
  586.     public function getMetaKeywords()
  587.     {
  588.         return $this->metaKeywords;
  589.     }
  590.     /**
  591.      * @ORM\Column(type="boolean", nullable=true)
  592.      */
  593.     private $loginRequiredToCreate;
  594.     /**
  595.      * Set loginRequiredToCreate.
  596.      *
  597.      * @param bool $loginRequiredToCreate
  598.      *
  599.      * @return KnowledgebaseWebsite
  600.      */
  601.     public function setLoginRequiredToCreate($loginRequiredToCreate)
  602.     {
  603.         $this->loginRequiredToCreate $loginRequiredToCreate;
  604.         return $this;
  605.     }
  606.     /**
  607.      * Get loginRequiredToCreate.
  608.      *
  609.      * @return bool
  610.      */
  611.     public function getLoginRequiredToCreate()
  612.     {
  613.         return $this->loginRequiredToCreate;
  614.     }
  615.     /**
  616.      * Set isActive
  617.      *
  618.      * @param boolean $isActive
  619.      *
  620.      * @return bool
  621.      */
  622.     public function setIsActive($isActive)
  623.     {
  624.         $this->isActive $isActive;
  625.         return $this;
  626.     }
  627.     /**
  628.      * Get isActive
  629.      *
  630.      * @return bool
  631.      */
  632.     public function getIsActive()
  633.     {
  634.         return $this->isActive;
  635.     }
  636.     /**
  637.      * Set disableCustomerLogin
  638.      *
  639.      * @param boolean $disableCustomerLogin
  640.      *
  641.      * @return bool
  642.      */
  643.     public function setDisableCustomerLogin($disableCustomerLogin)
  644.     {
  645.         $this->disableCustomerLogin $disableCustomerLogin;
  646.         return $this;
  647.     }
  648.     /**
  649.      * Get disableCustomerLogin
  650.      *
  651.      * @return bool
  652.      */
  653.     public function getDisableCustomerLogin()
  654.     {
  655.         return $this->disableCustomerLogin;
  656.     }
  657.     /**
  658.      * Set script
  659.      *
  660.      * @param string $script
  661.      * @return Website
  662.      */
  663.     public function setScript($script)
  664.     {
  665.         $this->script $script;
  666.         return $this;
  667.     }
  668.     /**
  669.      * Get script
  670.      *
  671.      * @return string
  672.      */
  673.     public function getScript()
  674.     {
  675.         return $this->script;
  676.     }
  677.     /**
  678.      * Set customCSS
  679.      *
  680.      * @param string $customCSS
  681.      * @return Website
  682.      */
  683.     public function setCustomCSS($customCSS)
  684.     {
  685.         $this->customCSS $customCSS;
  686.         return $this;
  687.     }
  688.     /**
  689.      * Get customCSS
  690.      *
  691.      * @return string
  692.      */
  693.     public function getCustomCSS()
  694.     {
  695.         return $this->customCSS;
  696.     }
  697.     /**
  698.      * @var integer
  699.      * @ORM\Column(type="integer", nullable=true, options={"default": 0})
  700.      */
  701.     private $removeCustomerLoginButton;
  702.     /**
  703.      * @var integer
  704.      * @ORM\Column(type="integer", nullable=true, options={"default": 5})
  705.      */
  706.     private $publicResourceAccessAttemptLimit;
  707.     /**
  708.      * Set publicResourceAccessAttemptLimit
  709.      *
  710.      * @param int $publicResourceAccessAttemptLimit
  711.      *
  712.      * @return Website
  713.      */
  714.     public function setPublicResourceAccessAttemptLimit($publicResourceAccessAttemptLimit)
  715.     {
  716.         $this->publicResourceAccessAttemptLimit $publicResourceAccessAttemptLimit;
  717.         return $this;
  718.     }
  719.     /**
  720.      * Get publicResourceAccessAttemptLimit
  721.      *
  722.      * @return array
  723.      */
  724.     public function getPublicResourceAccessAttemptLimit()
  725.     {
  726.         return $this->publicResourceAccessAttemptLimit;
  727.     }
  728.     /**
  729.      * Set removeCustomerLoginButton
  730.      *
  731.      * @param integer $removeCustomerLoginButton
  732.      * @return Website
  733.      */
  734.     public function setRemoveCustomerLoginButton($removeCustomerLoginButton)
  735.     {
  736.         $this->removeCustomerLoginButton $removeCustomerLoginButton;
  737.         return $this;
  738.     }
  739.     /**
  740.      * Get removeCustomerLoginButton
  741.      *
  742.      * @return integer
  743.      */
  744.     public function getRemoveCustomerLoginButton()
  745.     {
  746.         return $this->removeCustomerLoginButton;
  747.     }
  748.     /**
  749.      * @var integer
  750.      * @ORM\Column(type="integer", nullable=true, options={"default": 0})
  751.      */
  752.     private $removeBrandingContent;
  753.     /**
  754.      * Set removeBrandingContent
  755.      *
  756.      * @param integer $removeBrandingContent
  757.      * @return Website
  758.      */
  759.     public function setRemoveBrandingContent($removeBrandingContent)
  760.     {
  761.         $this->removeBrandingContent $removeBrandingContent;
  762.         return $this;
  763.     }
  764.     /**
  765.      * Get removeBrandingContent
  766.      *
  767.      * @return integer
  768.      */
  769.     public function getRemoveBrandingContent()
  770.     {
  771.         return $this->removeBrandingContent;
  772.     }
  773. }