vendor/theatre/core/src/Entity/Files.php line 13

Open in your IDE?
  1. <?php
  2. namespace TheatreCore\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * Files
  6.  *
  7.  * @ORM\Table(name="files", indexes={@ORM\Index(name="idextranetuser", columns={"idextranetuser"}), @ORM\Index(name="idperson", columns={"idperson"}), @ORM\Index(name="idtypefile", columns={"idtype"}), @ORM\Index(name="idfile_original", columns={"idfile_original"}), @ORM\Index(name="idcontent", columns={"idcontent"})})
  8.  * @ORM\Entity(repositoryClass="TheatreCore\Repository\FilesRepository")
  9.  */
  10. class Files
  11. {
  12.     /**
  13.      * @var int
  14.      *
  15.      * @ORM\Column(name="idfile", type="integer", nullable=false, options={"unsigned"=true})
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="IDENTITY")
  18.      */
  19.     private $idfile;
  20.     /**
  21.      * @var int|null
  22.      *
  23.      * @ORM\Column(name="`range`", type="smallint", nullable=true)
  24.      */
  25.     private $range;
  26.     /**
  27.      * @var string|null
  28.      *
  29.      * @ORM\Column(name="title", type="string", length=255, nullable=true)
  30.      */
  31.     private $title;
  32.     /**
  33.      * @var string|null
  34.      *
  35.      * @ORM\Column(name="description", type="text", length=65535, nullable=true)
  36.      */
  37.     private $description;
  38.     /**
  39.      * @var string|null
  40.      *
  41.      * @ORM\Column(name="copyright", type="string", length=100, nullable=true)
  42.      */
  43.     private $copyright;
  44.     /**
  45.      * @var bool|null
  46.      *
  47.      * @ORM\Column(name="watermark", type="boolean", nullable=true)
  48.      */
  49.     private $watermark;
  50.     /**
  51.      * @var string|null
  52.      *
  53.      * @ORM\Column(name="link", type="string", length=255, nullable=true)
  54.      */
  55.     private $link;
  56.     /**
  57.      * @var string|null
  58.      *
  59.      * @ORM\Column(name="file", type="string", length=255, nullable=true)
  60.      */
  61.     private $file;
  62.     /**
  63.      * @var string|null
  64.      *
  65.      * @ORM\Column(name="note_private", type="text", length=255, nullable=true)
  66.      */
  67.     private $notePrivate;
  68.     /**
  69.      * @var \DateTime|null
  70.      *
  71.      * @ORM\Column(name="publishing_date", type="date", nullable=true)
  72.      */
  73.     private $publishingDate;
  74.     /**
  75.      * @var \DateTime|null
  76.      *
  77.      * @ORM\Column(name="date_start", type="datetime", nullable=true)
  78.      */
  79.     private $dateStart;
  80.     /**
  81.      * @var \DateTime|null
  82.      *
  83.      * @ORM\Column(name="date_end", type="datetime", nullable=true)
  84.      */
  85.     private $dateEnd;
  86.     /**
  87.      * @var bool|null
  88.      *
  89.      * @ORM\Column(name="is_editable", type="boolean", nullable=true)
  90.      */
  91.     private $isEditable;
  92.     /**
  93.      * @var string
  94.      *
  95.      * @ORM\Column(name="language", type="string", length=2, nullable=false)
  96.      */
  97.     private $language;
  98.     /**
  99.      * @var int|null
  100.      *
  101.      * @ORM\Column(name="id_article", type="integer", nullable=true)
  102.      */
  103.     private $idArticle;
  104.     /**
  105.      * @var int|null
  106.      *
  107.      * @ORM\Column(name="id_document", type="integer", nullable=true)
  108.      */
  109.     private $idDocument;
  110.     /**
  111.      * @var \DateTime|null
  112.      *
  113.      * @ORM\Column(name="dateupdate", type="datetime", nullable=true)
  114.      */
  115.     private $dateupdate;
  116.     /**
  117.      * @var \DateTime|null
  118.      *
  119.      * @ORM\Column(name="dateinsert", type="datetime", nullable=true)
  120.      */
  121.     private $dateinsert;
  122.     /**
  123.      * @var bool
  124.      *
  125.      * @ORM\Column(name="publish", type="boolean", nullable=false)
  126.      */
  127.     private $publish false;
  128.     /**
  129.      * @var bool
  130.      *
  131.      * @ORM\Column(name="valid", type="boolean", nullable=false)
  132.      */
  133.     private $valid false;
  134.     /**
  135.      * @var \Typesfiles
  136.      *
  137.      * @ORM\ManyToOne(targetEntity="Typesfiles")
  138.      * @ORM\JoinColumns({
  139.      *   @ORM\JoinColumn(name="idtype", referencedColumnName="idtype")
  140.      * })
  141.      */
  142.     private $idtype;
  143.     /**
  144.      * @var \Extranetusers
  145.      *
  146.      * @ORM\ManyToOne(targetEntity="Extranetusers")
  147.      * @ORM\JoinColumns({
  148.      *   @ORM\JoinColumn(name="idextranetuser", referencedColumnName="idextranetuser")
  149.      * })
  150.      */
  151.     private $idextranetuser;
  152.     /**
  153.      * @var \Files
  154.      *
  155.      * @ORM\ManyToOne(targetEntity="Files")
  156.      * @ORM\JoinColumns({
  157.      *   @ORM\JoinColumn(name="idfile_original", referencedColumnName="idfile")
  158.      * })
  159.      */
  160.     private $idfileOriginal;
  161.     /**
  162.      * @var \Persons
  163.      *
  164.      * @ORM\ManyToOne(targetEntity="Persons")
  165.      * @ORM\JoinColumns({
  166.      *   @ORM\JoinColumn(name="idperson", referencedColumnName="idperson")
  167.      * })
  168.      */
  169.     private $idperson;
  170.     /**
  171.      * @var \Contents
  172.      *
  173.      * @ORM\ManyToOne(targetEntity="Contents")
  174.      * @ORM\JoinColumns({
  175.      *   @ORM\JoinColumn(name="idcontent", referencedColumnName="idcontent")
  176.      * })
  177.      */
  178.     private $idcontent;
  179.     /**
  180.      * @var \Doctrine\Common\Collections\Collection
  181.      *
  182.      * @ORM\ManyToMany(targetEntity="Classifications", inversedBy="idfile")
  183.      * @ORM\JoinTable(name="file_classification",
  184.      *   joinColumns={
  185.      *     @ORM\JoinColumn(name="idfile", referencedColumnName="idfile")
  186.      *   },
  187.      *   inverseJoinColumns={
  188.      *     @ORM\JoinColumn(name="idclassification", referencedColumnName="idclassification")
  189.      *   }
  190.      * )
  191.      */
  192.     private $idclassification;
  193.     /**
  194.      * Constructor
  195.      */
  196.     public function __construct()
  197.     {
  198.         $this->idclassification = new \Doctrine\Common\Collections\ArrayCollection();
  199.     }
  200.     /**
  201.      * Get idfile.
  202.      *
  203.      * @return int
  204.      */
  205.     public function getIdfile()
  206.     {
  207.         return $this->idfile;
  208.     }
  209.     /**
  210.      * Set range.
  211.      *
  212.      * @param int|null $range
  213.      *
  214.      * @return Files
  215.      */
  216.     public function setRange($range null)
  217.     {
  218.         $this->range $range;
  219.         return $this;
  220.     }
  221.     /**
  222.      * Get range.
  223.      *
  224.      * @return int|null
  225.      */
  226.     public function getRange()
  227.     {
  228.         return $this->range;
  229.     }
  230.     /**
  231.      * Set title.
  232.      *
  233.      * @param string|null $title
  234.      *
  235.      * @return Files
  236.      */
  237.     public function setTitle($title null)
  238.     {
  239.         $this->title $title;
  240.         return $this;
  241.     }
  242.     /**
  243.      * Get title.
  244.      *
  245.      * @return string|null
  246.      */
  247.     public function getTitle()
  248.     {
  249.         return $this->title;
  250.     }
  251.     /**
  252.      * Set description.
  253.      *
  254.      * @param string|null $description
  255.      *
  256.      * @return Files
  257.      */
  258.     public function setDescription($description null)
  259.     {
  260.         $this->description $description;
  261.         return $this;
  262.     }
  263.     /**
  264.      * Get description.
  265.      *
  266.      * @return string|null
  267.      */
  268.     public function getDescription()
  269.     {
  270.         return $this->description;
  271.     }
  272.     /**
  273.      * Set copyright.
  274.      *
  275.      * @param string|null $copyright
  276.      *
  277.      * @return Files
  278.      */
  279.     public function setCopyright($copyright null)
  280.     {
  281.         $this->copyright $copyright;
  282.         return $this;
  283.     }
  284.     /**
  285.      * Get copyright.
  286.      *
  287.      * @return string|null
  288.      */
  289.     public function getCopyright()
  290.     {
  291.         return $this->copyright;
  292.     }
  293.     /**
  294.      * Set watermark.
  295.      *
  296.      * @param bool|null $watermark
  297.      *
  298.      * @return Files
  299.      */
  300.     public function setWatermark($watermark null)
  301.     {
  302.         $this->watermark $watermark;
  303.         return $this;
  304.     }
  305.     /**
  306.      * Get watermark.
  307.      *
  308.      * @return bool|null
  309.      */
  310.     public function getWatermark()
  311.     {
  312.         return $this->watermark;
  313.     }
  314.     /**
  315.      * Set link.
  316.      *
  317.      * @param string|null $link
  318.      *
  319.      * @return Files
  320.      */
  321.     public function setLink($link null)
  322.     {
  323.         $this->link $link;
  324.         return $this;
  325.     }
  326.     /**
  327.      * Get link.
  328.      *
  329.      * @return string|null
  330.      */
  331.     public function getLink()
  332.     {
  333.         return $this->link;
  334.     }
  335.     /**
  336.      * Set file.
  337.      *
  338.      * @param string|null $file
  339.      *
  340.      * @return Files
  341.      */
  342.     public function setFile($file null)
  343.     {
  344.         $this->file $file;
  345.         return $this;
  346.     }
  347.     /**
  348.      * Get file.
  349.      *
  350.      * @return string|null
  351.      */
  352.     public function getFile()
  353.     {
  354.         return $this->file;
  355.     }
  356.     /**
  357.      * Set notePrivate.
  358.      *
  359.      * @param string|null $notePrivate
  360.      *
  361.      * @return Files
  362.      */
  363.     public function setNotePrivate($notePrivate null)
  364.     {
  365.         $this->notePrivate $notePrivate;
  366.         return $this;
  367.     }
  368.     /**
  369.      * Get notePrivate.
  370.      *
  371.      * @return string|null
  372.      */
  373.     public function getNotePrivate()
  374.     {
  375.         return $this->notePrivate;
  376.     }
  377.     /**
  378.      * Set publishingDate.
  379.      *
  380.      * @param \DateTime|null $publishingDate
  381.      *
  382.      * @return Files
  383.      */
  384.     public function setPublishingDate($publishingDate null)
  385.     {
  386.         $this->publishingDate $publishingDate;
  387.         return $this;
  388.     }
  389.     /**
  390.      * Get publishingDate.
  391.      *
  392.      * @return \DateTime|null
  393.      */
  394.     public function getPublishingDate()
  395.     {
  396.         return $this->publishingDate;
  397.     }
  398.     /**
  399.      * Set dateStart.
  400.      *
  401.      * @param \DateTime|null $dateStart
  402.      *
  403.      * @return Files
  404.      */
  405.     public function setDateStart($dateStart null)
  406.     {
  407.         $this->dateStart $dateStart;
  408.         return $this;
  409.     }
  410.     /**
  411.      * Get dateStart.
  412.      *
  413.      * @return \DateTime|null
  414.      */
  415.     public function getDateStart()
  416.     {
  417.         return $this->dateStart;
  418.     }
  419.     /**
  420.      * Set dateEnd.
  421.      *
  422.      * @param \DateTime|null $dateEnd
  423.      *
  424.      * @return Files
  425.      */
  426.     public function setDateEnd($dateEnd null)
  427.     {
  428.         $this->dateEnd $dateEnd;
  429.         return $this;
  430.     }
  431.     /**
  432.      * Get dateEnd.
  433.      *
  434.      * @return \DateTime|null
  435.      */
  436.     public function getDateEnd()
  437.     {
  438.         return $this->dateEnd;
  439.     }
  440.     /**
  441.      * Set isEditable.
  442.      *
  443.      * @param bool|null $isEditable
  444.      *
  445.      * @return Files
  446.      */
  447.     public function setIsEditable($isEditable null)
  448.     {
  449.         $this->isEditable $isEditable;
  450.         return $this;
  451.     }
  452.     /**
  453.      * Get isEditable.
  454.      *
  455.      * @return bool|null
  456.      */
  457.     public function getIsEditable()
  458.     {
  459.         return $this->isEditable;
  460.     }
  461.     /**
  462.      * Set language.
  463.      *
  464.      * @param string $language
  465.      *
  466.      * @return Files
  467.      */
  468.     public function setLanguage($language)
  469.     {
  470.         $this->language $language;
  471.         return $this;
  472.     }
  473.     /**
  474.      * Get language.
  475.      *
  476.      * @return string
  477.      */
  478.     public function getLanguage()
  479.     {
  480.         return $this->language;
  481.     }
  482.     /**
  483.      * Set idArticle.
  484.      *
  485.      * @param int|null $idArticle
  486.      *
  487.      * @return Files
  488.      */
  489.     public function setIdArticle($idArticle null)
  490.     {
  491.         $this->idArticle $idArticle;
  492.         return $this;
  493.     }
  494.     /**
  495.      * Get idArticle.
  496.      *
  497.      * @return int|null
  498.      */
  499.     public function getIdArticle()
  500.     {
  501.         return $this->idArticle;
  502.     }
  503.     /**
  504.      * Set idDocument.
  505.      *
  506.      * @param int|null $idDocument
  507.      *
  508.      * @return Files
  509.      */
  510.     public function setIdDocument($idDocument null)
  511.     {
  512.         $this->idDocument $idDocument;
  513.         return $this;
  514.     }
  515.     /**
  516.      * Get idDocument.
  517.      *
  518.      * @return int|null
  519.      */
  520.     public function getIdDocument()
  521.     {
  522.         return $this->idDocument;
  523.     }
  524.     /**
  525.      * Set dateupdate.
  526.      *
  527.      * @param \DateTime|null $dateupdate
  528.      *
  529.      * @return Files
  530.      */
  531.     public function setDateupdate($dateupdate null)
  532.     {
  533.         $this->dateupdate $dateupdate;
  534.         return $this;
  535.     }
  536.     /**
  537.      * Get dateupdate.
  538.      *
  539.      * @return \DateTime|null
  540.      */
  541.     public function getDateupdate()
  542.     {
  543.         return $this->dateupdate;
  544.     }
  545.     /**
  546.      * Set dateinsert.
  547.      *
  548.      * @param \DateTime|null $dateinsert
  549.      *
  550.      * @return Files
  551.      */
  552.     public function setDateinsert($dateinsert null)
  553.     {
  554.         $this->dateinsert $dateinsert;
  555.         return $this;
  556.     }
  557.     /**
  558.      * Get dateinsert.
  559.      *
  560.      * @return \DateTime|null
  561.      */
  562.     public function getDateinsert()
  563.     {
  564.         return $this->dateinsert;
  565.     }
  566.     /**
  567.      * Set publish.
  568.      *
  569.      * @param bool $publish
  570.      *
  571.      * @return Files
  572.      */
  573.     public function setPublish($publish)
  574.     {
  575.         $this->publish $publish;
  576.         return $this;
  577.     }
  578.     /**
  579.      * Get publish.
  580.      *
  581.      * @return bool
  582.      */
  583.     public function getPublish()
  584.     {
  585.         return $this->publish;
  586.     }
  587.     /**
  588.      * Set valid.
  589.      *
  590.      * @param bool $valid
  591.      *
  592.      * @return Files
  593.      */
  594.     public function setValid($valid)
  595.     {
  596.         $this->valid $valid;
  597.         return $this;
  598.     }
  599.     /**
  600.      * Get valid.
  601.      *
  602.      * @return bool
  603.      */
  604.     public function getValid()
  605.     {
  606.         return $this->valid;
  607.     }
  608.     /**
  609.      * Set idtype.
  610.      *
  611.      * @param \Typesfiles|null $idtype
  612.      *
  613.      * @return Files
  614.      */
  615.     public function setIdtype(Typesfiles $idtype null)
  616.     {
  617.         $this->idtype $idtype;
  618.         return $this;
  619.     }
  620.     /**
  621.      * Get idtype.
  622.      *
  623.      * @return \Typesfiles|null
  624.      */
  625.     public function getIdtype()
  626.     {
  627.         return $this->idtype;
  628.     }
  629.     /**
  630.      * Set idextranetuser.
  631.      *
  632.      * @param \Extranetusers|null $idextranetuser
  633.      *
  634.      * @return Files
  635.      */
  636.     public function setIdextranetuser(Extranetusers $idextranetuser null)
  637.     {
  638.         $this->idextranetuser $idextranetuser;
  639.         return $this;
  640.     }
  641.     /**
  642.      * Get idextranetuser.
  643.      *
  644.      * @return \Extranetusers|null
  645.      */
  646.     public function getIdextranetuser()
  647.     {
  648.         return $this->idextranetuser;
  649.     }
  650.     /**
  651.      * Set idfileOriginal.
  652.      *
  653.      * @param \Files|null $idfileOriginal
  654.      *
  655.      * @return Files
  656.      */
  657.     public function setIdfileOriginal(Files $idfileOriginal null)
  658.     {
  659.         $this->idfileOriginal $idfileOriginal;
  660.         return $this;
  661.     }
  662.     /**
  663.      * Get idfileOriginal.
  664.      *
  665.      * @return \Files|null
  666.      */
  667.     public function getIdfileOriginal()
  668.     {
  669.         return $this->idfileOriginal;
  670.     }
  671.     /**
  672.      * Set idperson.
  673.      *
  674.      * @param \Persons|null $idperson
  675.      *
  676.      * @return Files
  677.      */
  678.     public function setIdperson(Persons $idperson null)
  679.     {
  680.         $this->idperson $idperson;
  681.         return $this;
  682.     }
  683.     /**
  684.      * Get idperson.
  685.      *
  686.      * @return \Persons|null
  687.      */
  688.     public function getIdperson()
  689.     {
  690.         return $this->idperson;
  691.     }
  692.     /**
  693.      * Set idcontent.
  694.      *
  695.      * @param \Contents|null $idcontent
  696.      *
  697.      * @return Files
  698.      */
  699.     public function setIdcontent(Contents $idcontent null)
  700.     {
  701.         $this->idcontent $idcontent;
  702.         return $this;
  703.     }
  704.     /**
  705.      * Get idcontent.
  706.      *
  707.      * @return \Contents|null
  708.      */
  709.     public function getIdcontent()
  710.     {
  711.         return $this->idcontent;
  712.     }
  713.     /**
  714.      * Add idclassification.
  715.      *
  716.      * @param \Classifications $idclassification
  717.      *
  718.      * @return Files
  719.      */
  720.     public function addIdclassification(Classifications $idclassification)
  721.     {
  722.         $this->idclassification[] = $idclassification;
  723.         return $this;
  724.     }
  725.     /**
  726.      * Remove idclassification.
  727.      *
  728.      * @param \Classifications $idclassification
  729.      *
  730.      * @return boolean TRUE if this collection contained the specified element, FALSE otherwise.
  731.      */
  732.     public function removeIdclassification(Classifications $idclassification)
  733.     {
  734.         return $this->idclassification->removeElement($idclassification);
  735.     }
  736.     /**
  737.      * Get idclassification.
  738.      *
  739.      * @return \Doctrine\Common\Collections\Collection
  740.      */
  741.     public function getIdclassification()
  742.     {
  743.         return $this->idclassification;
  744.     }
  745. }