vendor/theatre/core/src/Entity/Contents.php line 14

Open in your IDE?
  1. <?php
  2. namespace TheatreCore\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use App\Validator as AcmeAssert;
  5. /**
  6.  * Contents
  7.  *
  8.  * @ORM\Table(name="contents", indexes={@ORM\Index(name="idextranetuser", columns={"idextranetuser"}), @ORM\Index(name="idspectacle", columns={"idspectacle"}), @ORM\Index(name="idcontact_journalist", columns={"idcontact_journalist"}), @ORM\Index(name="language", columns={"language"}), @ORM\Index(name="idcontent_original", columns={"idcontent_original"}), @ORM\Index(name="idcontact", columns={"idcontact"}), @ORM\Index(name="date_article", columns={"date_article"}), @ORM\Index(name="alpha", columns={"alpha"}), @ORM\Index(name="idcontact_newspaper", columns={"idcontact_newspaper"}), @ORM\Index(name="`range`", columns={"`range`"}), @ORM\Index(name="idperson", columns={"idperson"})})
  9.  * @ORM\Entity(repositoryClass="TheatreCore\Repository\ContentsRepository")
  10.  */
  11. class Contents
  12. {
  13.     /**
  14.      * @var int
  15.      *
  16.      * @ORM\Column(name="idcontent", type="integer", nullable=false, options={"unsigned"=true})
  17.      * @ORM\Id
  18.      * @ORM\GeneratedValue(strategy="IDENTITY")
  19.      */
  20.     private $idcontent;
  21.     /**
  22.      * @var int|null
  23.      *
  24.      * @ORM\Column(name="`range`", type="smallint", nullable=true, options={"unsigned"=true})
  25.      */
  26.     private $sort;
  27.     /**
  28.      * @var string|null
  29.      *
  30.      * @ORM\Column(name="alpha", type="string", length=10, nullable=true)
  31.      */
  32.     private $alpha;
  33.     /**
  34.      * @var string|null
  35.      *
  36.      * @ORM\Column(name="title", type="string", length=255, nullable=true)
  37.      */
  38.     private $title;
  39.     /**
  40.      * @var string|null
  41.      *
  42.      * @ORM\Column(name="subtitle", type="string", length=255, nullable=true)
  43.      */
  44.     private $subtitle;
  45.     /**
  46.      * @var string|null
  47.      *
  48.      * @ORM\Column(name="deck", type="text", nullable=true)
  49.      */
  50.     private $deck;
  51.     /**
  52.      * @var string|null
  53.      *
  54.      * @ORM\Column(name="`text`", type="text", nullable=true)
  55.      */
  56.     private $content;
  57.     /**
  58.      * @var string|null
  59.      *
  60.      * @ORM\Column(name="writer", type="string", length=100, nullable=true)
  61.      */
  62.     private $writer;
  63.     /**
  64.      * @var string|null
  65.      *
  66.      * @ORM\Column(name="writer_group", type="string", length=100, nullable=true)
  67.      */
  68.     private $writerGroup;
  69.     /**
  70.      * @var string|null
  71.      *
  72.      * @ORM\Column(name="writer_group_url", type="string", length=100, nullable=true)
  73.      */
  74.     private $writerGroupUrl;
  75.     /**
  76.      * @var string|null
  77.      *
  78.      * @ORM\Column(name="complements", type="string", length=100, nullable=true)
  79.      */
  80.     private $complements;
  81.     /**
  82.      * @var \DateTime|null
  83.      *
  84.      * @ORM\Column(name="date_article", type="date", nullable=true)
  85.      */
  86.     private $dateArticle;
  87.     /**
  88.      * @var string|null
  89.      *
  90.      * @ORM\Column(name="link", type="string", length=200, nullable=true, options={"comment"="lien"})
  91.      */
  92.     private $link;
  93.     /**
  94.      * @var bool
  95.      *
  96.      * @ORM\Column(name="is_link", type="boolean", nullable=false, options={"default"="0"})
  97.      */
  98.     private $isLink false;
  99.     /**
  100.      * @var string|null
  101.      *
  102.      * @ORM\Column(name="linktitle", type="string", length=200, nullable=true, options={"comment"="titre du lien"})
  103.      */
  104.     private $linktitle;
  105.     /**
  106.      * @var string|null
  107.      *
  108.      * @ORM\Column(name="facebook", type="string", length=150, nullable=true)
  109.      */
  110.     private $facebook;
  111.     /**
  112.      * @var string|null
  113.      *
  114.      * @ORM\Column(name="twitter", type="string", length=150, nullable=true)
  115.      */
  116.     private $twitter;
  117.     /**
  118.      * @var string|null
  119.      *
  120.      * @ORM\Column(name="linkedin", type="string", length=150, nullable=true)
  121.      */
  122.     private $linkedin;
  123.     /**
  124.      * @var string|null
  125.      *
  126.      * @ORM\Column(name="instagram", type="string", length=255, nullable=true)
  127.      */
  128.     private $instagram;
  129.     /**
  130.      * @var string|null
  131.      *
  132.      * @ORM\Column(name="`date`", type="string", length=20, nullable=true)
  133.      */
  134.     private $dateContent;
  135.     /**
  136.      * @var bool|null
  137.      *
  138.      * @ORM\Column(name="`licence`", type="boolean", length=20, nullable=true)
  139.      */
  140.     private $licence;
  141.     /**
  142.      * @var bool|null
  143.      *
  144.      * @ORM\Column(name="markdown", type="boolean", nullable=true)
  145.      */
  146.     private $markdown;
  147.     /**
  148.      * @var string|null
  149.      *
  150.      * @ORM\Column(name="idcountrie", type="string", length=2, nullable=true, options={"fixed"=true})
  151.      */
  152.     private $idcountrie;
  153.     /**
  154.      * @var string|null
  155.      *
  156.      * @ORM\Column(name="canonical_url", type="string", length=255, nullable=true)
  157.      */
  158.     private $canonicalUrl;
  159.     /**
  160.      * @var string|null
  161.      *
  162.      * @ORM\Column(name="source_link", type="string", length=255, nullable=true)
  163.      */
  164.     private $sourceLink;
  165.     /**
  166.      * @var string|null
  167.      *
  168.      * @ORM\Column(name="source_description", type="string", length=255, nullable=true)
  169.      */
  170.     private $sourceDescription;
  171.     /**
  172.      * @var bool
  173.      *
  174.      * @ORM\Column(name="display_media", type="boolean", nullable=false)
  175.      */
  176.     private $displayMedia false;
  177.     /**
  178.      * @var int|null
  179.      *
  180.      * @ORM\Column(name="id_article", type="integer", nullable=true)
  181.      */
  182.     private $idArticle;
  183.     /**
  184.      * @var \DateTime|null
  185.      *
  186.      * @ORM\Column(name="dateupdate", type="datetime", nullable=true)
  187.      */
  188.     private $dateupdate;
  189.     /**
  190.      * @var \DateTime|null
  191.      *
  192.      * @ORM\Column(name="dateinsert", type="datetime", nullable=true)
  193.      */
  194.     private $dateinsert;
  195.     /**
  196.      * @var bool
  197.      *
  198.      * @ORM\Column(name="publish", type="boolean", nullable=false, options={"default"="1"})
  199.      */
  200.     private $publish true;
  201.     /**
  202.      * @var bool
  203.      *
  204.      * @ORM\Column(name="valid", type="boolean", nullable=false)
  205.      */
  206.     private $valid false;
  207.     /**
  208.      * @var \Contacts
  209.      *
  210.      * @ORM\ManyToOne(targetEntity="Contacts")
  211.      * @ORM\JoinColumns({
  212.      *   @ORM\JoinColumn(name="idcontact_journalist", referencedColumnName="idcontact")
  213.      * })
  214.      */
  215.     private $idcontactJournalist;
  216.     /**
  217.      * @var \Contacts
  218.      *
  219.      * @ORM\ManyToOne(targetEntity="Contacts")
  220.      * @ORM\JoinColumns({
  221.      *   @ORM\JoinColumn(name="idcontact_newspaper", referencedColumnName="idcontact")
  222.      * })
  223.      */
  224.     private $idcontactNewspaper;
  225.     /**
  226.      * @var \Languages
  227.      *
  228.      * @ORM\ManyToOne(targetEntity="Languages")
  229.      * @ORM\JoinColumns({
  230.      *   @ORM\JoinColumn(name="language", referencedColumnName="id")
  231.      * })
  232.      */
  233.     private $language;
  234.     /**
  235.      * @var \Persons
  236.      *
  237.      * @ORM\ManyToOne(targetEntity="Persons")
  238.      * @ORM\JoinColumns({
  239.      *   @ORM\JoinColumn(name="idperson", referencedColumnName="idperson")
  240.      * })
  241.      */
  242.     private $idperson;
  243.     /**
  244.      * @var \Extranetusers
  245.      *
  246.      * @ORM\ManyToOne(targetEntity="Extranetusers")
  247.      * @ORM\JoinColumns({
  248.      *   @ORM\JoinColumn(name="idextranetuser", referencedColumnName="idextranetuser")
  249.      * })
  250.      */
  251.     private $idextranetuser;
  252.     /**
  253.      * @var \Contacts
  254.      *
  255.      * @ORM\ManyToOne(targetEntity="Contacts")
  256.      * @ORM\JoinColumns({
  257.      *   @ORM\JoinColumn(name="idcontact", referencedColumnName="idcontact")
  258.      * })
  259.      */
  260.     private $idcontact;
  261.     /**
  262.      * @var \Spectacles
  263.      *
  264.      * @ORM\ManyToOne(targetEntity="Spectacles", inversedBy="idcontent")
  265.      * @ORM\JoinColumns({
  266.      *   @ORM\JoinColumn(name="idspectacle", referencedColumnName="idspectacle")
  267.      * })
  268.      */
  269.     private $idspectacle;
  270.     /**
  271.      * @var \Contents
  272.      *
  273.      * @ORM\ManyToOne(targetEntity="Contents")
  274.      * @ORM\JoinColumns({
  275.      *   @ORM\JoinColumn(name="idcontent_original", referencedColumnName="idcontent")
  276.      * })
  277.      */
  278.     private $idcontentOriginal;
  279.     /**
  280.      * @var \Doctrine\Common\Collections\Collection
  281.      *
  282.      * @ORM\ManyToMany(targetEntity="Classifications", inversedBy="idcontent")
  283.      * @ORM\JoinTable(name="content_classification",
  284.      *   joinColumns={
  285.      *     @ORM\JoinColumn(name="idcontent", referencedColumnName="idcontent")
  286.      *   },
  287.      *   inverseJoinColumns={
  288.      *     @ORM\JoinColumn(name="idclassification", referencedColumnName="idclassification")
  289.      *   }
  290.      * )
  291.      *
  292.      * @AcmeAssert\Relations(message = "Type(s) de content : veuillez prĂ©ciser au moins un type de content")
  293.      *
  294.      */
  295.     private $content_classification;
  296.     /**
  297.      * @var \Doctrine\Common\Collections\Collection
  298.      *
  299.      * @ORM\ManyToMany(targetEntity="Contacts", inversedBy="idcontent")
  300.      * @ORM\JoinTable(name="content_publisher",
  301.      *   joinColumns={
  302.      *     @ORM\JoinColumn(name="idcontent", referencedColumnName="idcontent")
  303.      *   },
  304.      *   inverseJoinColumns={
  305.      *     @ORM\JoinColumn(name="idcontact", referencedColumnName="idcontact")
  306.      *   }
  307.      * )
  308.      */
  309.     private $publishercontact;
  310.     /**
  311.      * @var \Doctrine\Common\Collections\Collection
  312.      *
  313.      * @ORM\ManyToMany(targetEntity="Templates", inversedBy="idcontent")
  314.      * @ORM\JoinTable(name="content_template",
  315.      *   joinColumns={
  316.      *     @ORM\JoinColumn(name="idcontent", referencedColumnName="idcontent")
  317.      *   },
  318.      *   inverseJoinColumns={
  319.      *     @ORM\JoinColumn(name="idtemplate", referencedColumnName="idtemplate")
  320.      *   }
  321.      * )
  322.      */
  323.     private $idtemplate;
  324.     /**
  325.      * Constructor
  326.      */
  327.     public function __construct()
  328.     {
  329.         $this->idclassification = new \Doctrine\Common\Collections\ArrayCollection();
  330.         $this->publishercontact = new \Doctrine\Common\Collections\ArrayCollection();
  331.         $this->idtemplate = new \Doctrine\Common\Collections\ArrayCollection();
  332.     }
  333.     /**
  334.      * Get idcontent.
  335.      *
  336.      * @return int
  337.      */
  338.     public function getIdcontent()
  339.     {
  340.         return $this->idcontent;
  341.     }
  342.     /**
  343.      * Set sort.
  344.      *
  345.      * @param int|null $sort
  346.      *
  347.      * @return Contents
  348.      */
  349.     public function setSort($sort null)
  350.     {
  351.         $this->sort $sort;
  352.         return $this;
  353.     }
  354.     /**
  355.      * Get sort.
  356.      *
  357.      * @return int|null
  358.      */
  359.     public function getSort()
  360.     {
  361.         return $this->sort;
  362.     }
  363.     /**
  364.      * Set alpha.
  365.      *
  366.      * @param string|null $alpha
  367.      *
  368.      * @return Contents
  369.      */
  370.     public function setAlpha($alpha null)
  371.     {
  372.         $this->alpha $alpha;
  373.         return $this;
  374.     }
  375.     /**
  376.      * Get alpha.
  377.      *
  378.      * @return string|null
  379.      */
  380.     public function getAlpha()
  381.     {
  382.         return $this->alpha;
  383.     }
  384.     /**
  385.      * Set title.
  386.      *
  387.      * @param string|null $title
  388.      *
  389.      * @return Contents
  390.      */
  391.     public function setTitle($title null)
  392.     {
  393.         $this->title $title;
  394.         return $this;
  395.     }
  396.     /**
  397.      * Get title.
  398.      *
  399.      * @return string|null
  400.      */
  401.     public function getTitle()
  402.     {
  403.         return $this->title;
  404.     }
  405.     /**
  406.      * Set subtitle.
  407.      *
  408.      * @param string|null $subtitle
  409.      *
  410.      * @return Contents
  411.      */
  412.     public function setSubtitle($subtitle null)
  413.     {
  414.         $this->subtitle $subtitle;
  415.         return $this;
  416.     }
  417.     /**
  418.      * Get subtitle.
  419.      *
  420.      * @return string|null
  421.      */
  422.     public function getSubtitle()
  423.     {
  424.         return $this->subtitle;
  425.     }
  426.     /**
  427.      * Set deck.
  428.      *
  429.      * @param string|null $deck
  430.      *
  431.      * @return Contents
  432.      */
  433.     public function setDeck($deck null)
  434.     {
  435.         $this->deck $deck;
  436.         return $this;
  437.     }
  438.     /**
  439.      * Get deck.
  440.      *
  441.      * @return string|null
  442.      */
  443.     public function getDeck()
  444.     {
  445.         return $this->deck;
  446.     }
  447.     /**
  448.      * Set content.
  449.      *
  450.      * @param string|null $content
  451.      *
  452.      * @return Contents
  453.      */
  454.     public function setContent($content null)
  455.     {
  456.         $this->content $content;
  457.         return $this;
  458.     }
  459.     /**
  460.      * Get content.
  461.      *
  462.      * @return string|null
  463.      */
  464.     public function getContent()
  465.     {
  466.         return $this->content;
  467.     }
  468.     /**
  469.      * Set writer.
  470.      *
  471.      * @param string|null $writer
  472.      *
  473.      * @return Contents
  474.      */
  475.     public function setWriter($writer null)
  476.     {
  477.         $this->writer $writer;
  478.         return $this;
  479.     }
  480.     /**
  481.      * Get writer.
  482.      *
  483.      * @return string|null
  484.      */
  485.     public function getWriter()
  486.     {
  487.         return $this->writer;
  488.     }
  489.     /**
  490.      * Set writerGroup.
  491.      *
  492.      * @param string|null $writerGroup
  493.      *
  494.      * @return Contents
  495.      */
  496.     public function setWriterGroup($writerGroup null)
  497.     {
  498.         $this->writerGroup $writerGroup;
  499.         return $this;
  500.     }
  501.     /**
  502.      * Get writerGroup.
  503.      *
  504.      * @return string|null
  505.      */
  506.     public function getWriterGroup()
  507.     {
  508.         return $this->writerGroup;
  509.     }
  510.     /**
  511.      * Set writerGroupUrl.
  512.      *
  513.      * @param string|null $writerGroupUrl
  514.      *
  515.      * @return Contents
  516.      */
  517.     public function setWriterGroupUrl($writerGroupUrl null)
  518.     {
  519.         $this->writerGroupUrl $writerGroupUrl;
  520.         return $this;
  521.     }
  522.     /**
  523.      * Get writerGroupUrl.
  524.      *
  525.      * @return string|null
  526.      */
  527.     public function getWriterGroupUrl()
  528.     {
  529.         return $this->writerGroupUrl;
  530.     }
  531.     /**
  532.      * Set complements.
  533.      *
  534.      * @param string|null $complements
  535.      *
  536.      * @return Contents
  537.      */
  538.     public function setComplements($complements null)
  539.     {
  540.         $this->complements $complements;
  541.         return $this;
  542.     }
  543.     /**
  544.      * Get complements.
  545.      *
  546.      * @return string|null
  547.      */
  548.     public function getComplements()
  549.     {
  550.         return $this->complements;
  551.     }
  552.     /**
  553.      * Set dateArticle.
  554.      *
  555.      * @param \DateTime|null $dateArticle
  556.      *
  557.      * @return Contents
  558.      */
  559.     public function setDateArticle($dateArticle null)
  560.     {
  561.         $this->dateArticle $dateArticle;
  562.         return $this;
  563.     }
  564.     /**
  565.      * Get dateArticle.
  566.      *
  567.      * @return \DateTime|null
  568.      */
  569.     public function getDateArticle()
  570.     {
  571.         return $this->dateArticle;
  572.     }
  573.     /**
  574.      * Set link.
  575.      *
  576.      * @param string|null $link
  577.      *
  578.      * @return Contents
  579.      */
  580.     public function setLink($link null)
  581.     {
  582.         $this->link $link;
  583.         return $this;
  584.     }
  585.     /**
  586.      * Get link.
  587.      *
  588.      * @return string|null
  589.      */
  590.     public function getLink()
  591.     {
  592.         return $this->link;
  593.     }
  594.     /**
  595.      * Set isLink.
  596.      *
  597.      * @param bool $isLink
  598.      *
  599.      * @return Contents
  600.      */
  601.     public function setIsLink($isLink)
  602.     {
  603.         $this->isLink $isLink;
  604.         return $this;
  605.     }
  606.     /**
  607.      * Get isLink.
  608.      *
  609.      * @return bool
  610.      */
  611.     public function getIsLink()
  612.     {
  613.         return $this->isLink;
  614.     }
  615.     /**
  616.      * Set linktitle.
  617.      *
  618.      * @param string|null $linktitle
  619.      *
  620.      * @return Contents
  621.      */
  622.     public function setLinktitle($linktitle null)
  623.     {
  624.         $this->linktitle $linktitle;
  625.         return $this;
  626.     }
  627.     /**
  628.      * Get linktitle.
  629.      *
  630.      * @return string|null
  631.      */
  632.     public function getLinktitle()
  633.     {
  634.         return $this->linktitle;
  635.     }
  636.     /**
  637.      * Set facebook.
  638.      *
  639.      * @param string|null $facebook
  640.      *
  641.      * @return Contents
  642.      */
  643.     public function setFacebook($facebook null)
  644.     {
  645.         $this->facebook $facebook;
  646.         return $this;
  647.     }
  648.     /**
  649.      * Get facebook.
  650.      *
  651.      * @return string|null
  652.      */
  653.     public function getFacebook()
  654.     {
  655.         return $this->facebook;
  656.     }
  657.     /**
  658.      * Set twitter.
  659.      *
  660.      * @param string|null $twitter
  661.      *
  662.      * @return Contents
  663.      */
  664.     public function setTwitter($twitter null)
  665.     {
  666.         $this->twitter $twitter;
  667.         return $this;
  668.     }
  669.     /**
  670.      * Get twitter.
  671.      *
  672.      * @return string|null
  673.      */
  674.     public function getTwitter()
  675.     {
  676.         return $this->twitter;
  677.     }
  678.     /**
  679.      * Set linkedin.
  680.      *
  681.      * @param string|null $linkedin
  682.      *
  683.      * @return Contents
  684.      */
  685.     public function setLinkedin($linkedin null)
  686.     {
  687.         $this->linkedin $linkedin;
  688.         return $this;
  689.     }
  690.     /**
  691.      * Get linkedin.
  692.      *
  693.      * @return string|null
  694.      */
  695.     public function getLinkedin()
  696.     {
  697.         return $this->linkedin;
  698.     }
  699.     /**
  700.      * Set instagram.
  701.      *
  702.      * @param string|null $instagram
  703.      *
  704.      * @return Contents
  705.      */
  706.     public function setInstagram($instagram null)
  707.     {
  708.         $this->instagram $instagram;
  709.         return $this;
  710.     }
  711.     /**
  712.      * Get instagram.
  713.      *
  714.      * @return string|null
  715.      */
  716.     public function getInstagram()
  717.     {
  718.         return $this->instagram;
  719.     }
  720.     /**
  721.      * Set date.
  722.      *
  723.      * @param string|null $dateContent
  724.      *
  725.      * @return Contents
  726.      */
  727.     public function setDateContent($dateContent null)
  728.     {
  729.         $this->dateContent $dateContent;
  730.         return $this;
  731.     }
  732.     /**
  733.      * Get date.
  734.      *
  735.      * @return string|null
  736.      */
  737.     public function getDateContent()
  738.     {
  739.         return $this->dateContent;
  740.     }
  741.     /**
  742.      * Set markdown.
  743.      *
  744.      * @param bool|null $markdown
  745.      *
  746.      * @return Contents
  747.      */
  748.     public function setMarkdown($markdown null)
  749.     {
  750.         $this->markdown $markdown;
  751.         return $this;
  752.     }
  753.     /**
  754.      * Get markdown.
  755.      *
  756.      * @return bool|null
  757.      */
  758.     public function getMarkdown()
  759.     {
  760.         return $this->markdown;
  761.     }
  762.     /**
  763.      * Set licence.
  764.      *
  765.      * @param bool|null $licence
  766.      *
  767.      * @return Contents
  768.      */
  769.     public function setLicence($licence null)
  770.     {
  771.         $this->licence $licence;
  772.         return $this;
  773.     }
  774.     /**
  775.      * Get licence.
  776.      *
  777.      * @return bool|null
  778.      */
  779.     public function getLicence()
  780.     {
  781.         return $this->licence;
  782.     }
  783.     /**
  784.      * Set idcountrie.
  785.      *
  786.      * @param string|null $idcountrie
  787.      *
  788.      * @return Contents
  789.      */
  790.     public function setIdcountrie($idcountrie null)
  791.     {
  792.         $this->idcountrie $idcountrie;
  793.         return $this;
  794.     }
  795.     /**
  796.      * Get idcountrie.
  797.      *
  798.      * @return string|null
  799.      */
  800.     public function getIdcountrie()
  801.     {
  802.         return $this->idcountrie;
  803.     }
  804.     /**
  805.      * Set canonicalUrl.
  806.      *
  807.      * @param string|null $canonicalUrl
  808.      *
  809.      * @return Contents
  810.      */
  811.     public function setCanonicalUrl($canonicalUrl null)
  812.     {
  813.         $this->canonicalUrl $canonicalUrl;
  814.         return $this;
  815.     }
  816.     /**
  817.      * Get canonicalUrl.
  818.      *
  819.      * @return string|null
  820.      */
  821.     public function getCanonicalUrl()
  822.     {
  823.         return $this->canonicalUrl;
  824.     }
  825.     /**
  826.      * Set sourceLink.
  827.      *
  828.      * @param string|null $sourceLink
  829.      *
  830.      * @return Contents
  831.      */
  832.     public function setSourceLink($sourceLink null)
  833.     {
  834.         $this->sourceLink $sourceLink;
  835.         return $this;
  836.     }
  837.     /**
  838.      * Get sourceLink.
  839.      *
  840.      * @return string|null
  841.      */
  842.     public function getSourceLink()
  843.     {
  844.         return $this->sourceLink;
  845.     }
  846.     /**
  847.      * Set sourceDescription.
  848.      *
  849.      * @param string|null $sourceDescription
  850.      *
  851.      * @return Contents
  852.      */
  853.     public function setSourceDescription($sourceDescription null)
  854.     {
  855.         $this->sourceDescription $sourceDescription;
  856.         return $this;
  857.     }
  858.     /**
  859.      * Get sourceDescription.
  860.      *
  861.      * @return string|null
  862.      */
  863.     public function getSourceDescription()
  864.     {
  865.         return $this->sourceDescription;
  866.     }
  867.     /**
  868.      * Set displayMedia.
  869.      *
  870.      * @param bool $displayMedia
  871.      *
  872.      * @return Contents
  873.      */
  874.     public function setDisplayMedia($displayMedia)
  875.     {
  876.         $this->displayMedia $displayMedia;
  877.         return $this;
  878.     }
  879.     /**
  880.      * Get displayMedia.
  881.      *
  882.      * @return bool
  883.      */
  884.     public function getDisplayMedia()
  885.     {
  886.         return $this->displayMedia;
  887.     }
  888.     /**
  889.      * Set idArticle.
  890.      *
  891.      * @param int|null $idArticle
  892.      *
  893.      * @return Contents
  894.      */
  895.     public function setIdArticle($idArticle null)
  896.     {
  897.         $this->idArticle $idArticle;
  898.         return $this;
  899.     }
  900.     /**
  901.      * Get idArticle.
  902.      *
  903.      * @return int|null
  904.      */
  905.     public function getIdArticle()
  906.     {
  907.         return $this->idArticle;
  908.     }
  909.     /**
  910.      * Set dateupdate.
  911.      *
  912.      * @param \DateTime|null $dateupdate
  913.      *
  914.      * @return Contents
  915.      */
  916.     public function setDateupdate($dateupdate null)
  917.     {
  918.         $this->dateupdate $dateupdate;
  919.         return $this;
  920.     }
  921.     /**
  922.      * Get dateupdate.
  923.      *
  924.      * @return \DateTime|null
  925.      */
  926.     public function getDateupdate()
  927.     {
  928.         return $this->dateupdate;
  929.     }
  930.     /**
  931.      * Set dateinsert.
  932.      *
  933.      * @param \DateTime|null $dateinsert
  934.      *
  935.      * @return Contents
  936.      */
  937.     public function setDateinsert($dateinsert null)
  938.     {
  939.         $this->dateinsert $dateinsert;
  940.         return $this;
  941.     }
  942.     /**
  943.      * Get dateinsert.
  944.      *
  945.      * @return \DateTime|null
  946.      */
  947.     public function getDateinsert()
  948.     {
  949.         return $this->dateinsert;
  950.     }
  951.     /**
  952.      * Set publish.
  953.      *
  954.      * @param bool $publish
  955.      *
  956.      * @return Contents
  957.      */
  958.     public function setPublish($publish)
  959.     {
  960.         $this->publish $publish;
  961.         return $this;
  962.     }
  963.     /**
  964.      * Get publish.
  965.      *
  966.      * @return bool
  967.      */
  968.     public function getPublish()
  969.     {
  970.         return $this->publish;
  971.     }
  972.     /**
  973.      * Set valid.
  974.      *
  975.      * @param bool $valid
  976.      *
  977.      * @return Contents
  978.      */
  979.     public function setValid($valid)
  980.     {
  981.         $this->valid $valid;
  982.         return $this;
  983.     }
  984.     /**
  985.      * Get valid.
  986.      *
  987.      * @return bool
  988.      */
  989.     public function getValid()
  990.     {
  991.         return $this->valid;
  992.     }
  993.     /**
  994.      * Set idcontactJournalist.
  995.      *
  996.      * @param \Contacts|null $idcontactJournalist
  997.      *
  998.      * @return Contents
  999.      */
  1000.     public function setIdcontactJournalist(Contacts $idcontactJournalist null)
  1001.     {
  1002.         $this->idcontactJournalist $idcontactJournalist;
  1003.         return $this;
  1004.     }
  1005.     /**
  1006.      * Get idcontactJournalist.
  1007.      *
  1008.      * @return \Contacts|null
  1009.      */
  1010.     public function getIdcontactJournalist()
  1011.     {
  1012.         return $this->idcontactJournalist;
  1013.     }
  1014.     /**
  1015.      * Set idcontactNewspaper.
  1016.      *
  1017.      * @param \Contacts|null $idcontactNewspaper
  1018.      *
  1019.      * @return Contents
  1020.      */
  1021.     public function setIdcontactNewspaper(Contacts $idcontactNewspaper null)
  1022.     {
  1023.         $this->idcontactNewspaper $idcontactNewspaper;
  1024.         return $this;
  1025.     }
  1026.     /**
  1027.      * Get idcontactNewspaper.
  1028.      *
  1029.      * @return \Contacts|null
  1030.      */
  1031.     public function getIdcontactNewspaper()
  1032.     {
  1033.         return $this->idcontactNewspaper;
  1034.     }
  1035.     /**
  1036.      * Set language.
  1037.      *
  1038.      * @param \Languages|null $language
  1039.      *
  1040.      * @return Contents
  1041.      */
  1042.     public function setLanguage(Languages $language null)
  1043.     {
  1044.         $this->language $language;
  1045.         return $this;
  1046.     }
  1047.     /**
  1048.      * Get language.
  1049.      *
  1050.      * @return \Languages|null
  1051.      */
  1052.     public function getLanguage()
  1053.     {
  1054.         return $this->language;
  1055.     }
  1056.     /**
  1057.      * Set idperson.
  1058.      *
  1059.      * @param \Persons|null $idperson
  1060.      *
  1061.      * @return Contents
  1062.      */
  1063.     public function setIdperson(Persons $idperson null)
  1064.     {
  1065.         $this->idperson $idperson;
  1066.         return $this;
  1067.     }
  1068.     /**
  1069.      * Get idperson.
  1070.      *
  1071.      * @return \Persons|null
  1072.      */
  1073.     public function getIdperson()
  1074.     {
  1075.         return $this->idperson;
  1076.     }
  1077.     /**
  1078.      * Set idextranetuser.
  1079.      *
  1080.      * @param \Extranetusers|null $idextranetuser
  1081.      *
  1082.      * @return Contents
  1083.      */
  1084.     public function setIdextranetuser(Extranetusers $idextranetuser null)
  1085.     {
  1086.         $this->idextranetuser $idextranetuser;
  1087.         return $this;
  1088.     }
  1089.     /**
  1090.      * Get idextranetuser.
  1091.      *
  1092.      * @return \Extranetusers|null
  1093.      */
  1094.     public function getIdextranetuser()
  1095.     {
  1096.         return $this->idextranetuser;
  1097.     }
  1098.     /**
  1099.      * Set idcontact.
  1100.      *
  1101.      * @param \Contacts|null $idcontact
  1102.      *
  1103.      * @return Contents
  1104.      */
  1105.     public function setIdcontact(Contacts $idcontact null)
  1106.     {
  1107.         $this->idcontact $idcontact;
  1108.         return $this;
  1109.     }
  1110.     /**
  1111.      * Get idcontact.
  1112.      *
  1113.      * @return \Contacts|null
  1114.      */
  1115.     public function getIdcontact()
  1116.     {
  1117.         return $this->idcontact;
  1118.     }
  1119.     /**
  1120.      * Set idspectacle.
  1121.      *
  1122.      * @param \Spectacles|null $idspectacle
  1123.      *
  1124.      * @return Contents
  1125.      */
  1126.     public function setIdspectacle(Spectacles $idspectacle null)
  1127.     {
  1128.         $this->idspectacle $idspectacle;
  1129.         return $this;
  1130.     }
  1131.     /**
  1132.      * Get idspectacle.
  1133.      *
  1134.      * @return \Spectacles|null
  1135.      */
  1136.     public function getIdspectacle()
  1137.     {
  1138.         return $this->idspectacle;
  1139.     }
  1140.     /**
  1141.      * Set idcontentOriginal.
  1142.      *
  1143.      * @param \Contents|null $idcontentOriginal
  1144.      *
  1145.      * @return Contents
  1146.      */
  1147.     public function setIdcontentOriginal(Contents $idcontentOriginal null)
  1148.     {
  1149.         $this->idcontentOriginal $idcontentOriginal;
  1150.         return $this;
  1151.     }
  1152.     /**
  1153.      * Get idcontentOriginal.
  1154.      *
  1155.      * @return \Contents|null
  1156.      */
  1157.     public function getIdcontentOriginal()
  1158.     {
  1159.         return $this->idcontentOriginal;
  1160.     }
  1161.     /**
  1162.      * Add content_classification.
  1163.      *
  1164.      * @param \Classifications $content_classification
  1165.      *
  1166.      * @return Contents
  1167.      */
  1168.     public function addContentClassification(Classifications $content_classification)
  1169.     {
  1170.         $this->content_classification[] = $content_classification;
  1171.         return $this;
  1172.     }
  1173.     /**
  1174.      * Remove content_classification.
  1175.      *
  1176.      * @param \Classifications $content_classification
  1177.      *
  1178.      * @return boolean TRUE if this collection contained the specified element, FALSE otherwise.
  1179.      */
  1180.     public function removeContentClassification(Classifications $content_classification)
  1181.     {
  1182.         return $this->content_classification->removeElement($content_classification);
  1183.     }
  1184.     /**
  1185.      * Get content_classification.
  1186.      *
  1187.      * @return \Doctrine\Common\Collections\Collection
  1188.      */
  1189.     public function getContentClassification()
  1190.     {
  1191.         return $this->content_classification;
  1192.     }
  1193.     /**
  1194.      * Set content_classification.
  1195.      *
  1196.      * @param \Classifications $content_classification
  1197.      *
  1198.      * @return Contents
  1199.      */
  1200.     public function setContentClassification($content_classification)
  1201.     {
  1202.         $this->content_classification[] = $content_classification;
  1203.         return $this;
  1204.     }
  1205.     /**
  1206.      * Add publishercontact.
  1207.      *
  1208.      * @param \Contacts $publishercontact
  1209.      *
  1210.      * @return Contents
  1211.      */
  1212.     public function addPublishercontact(Contacts $publishercontact)
  1213.     {
  1214.         $this->publishercontact[] = $publishercontact;
  1215.         return $this;
  1216.     }
  1217.     /**
  1218.      * Remove publishercontact.
  1219.      *
  1220.      * @param \Contacts $publishercontact
  1221.      *
  1222.      * @return boolean TRUE if this collection contained the specified element, FALSE otherwise.
  1223.      */
  1224.     public function removePublishercontact(Contacts $publishercontact)
  1225.     {
  1226.         return $this->publishercontact->removeElement($publishercontact);
  1227.     }
  1228.     /**
  1229.      * Get publishercontact.
  1230.      *
  1231.      * @return \Doctrine\Common\Collections\Collection
  1232.      */
  1233.     public function getPublishercontact()
  1234.     {
  1235.         return $this->publishercontact;
  1236.     }
  1237.     /**
  1238.      * Add idtemplate.
  1239.      *
  1240.      * @param \Templates $idtemplate
  1241.      *
  1242.      * @return Contents
  1243.      */
  1244.     public function addIdtemplate(Templates $idtemplate)
  1245.     {
  1246.         $this->idtemplate[] = $idtemplate;
  1247.         return $this;
  1248.     }
  1249.     /**
  1250.      * Remove idtemplate.
  1251.      *
  1252.      * @param \Templates $idtemplate
  1253.      *
  1254.      * @return boolean TRUE if this collection contained the specified element, FALSE otherwise.
  1255.      */
  1256.     public function removeIdtemplate(Templates $idtemplate)
  1257.     {
  1258.         return $this->idtemplate->removeElement($idtemplate);
  1259.     }
  1260.     /**
  1261.      * Get idtemplate.
  1262.      *
  1263.      * @return \Doctrine\Common\Collections\Collection
  1264.      */
  1265.     public function getIdtemplate()
  1266.     {
  1267.         return $this->idtemplate;
  1268.     }
  1269.     public function __toString()
  1270.     {
  1271.         return (string)$this->getTitle();
  1272.     }
  1273. }