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

Open in your IDE?
  1. <?php
  2. namespace TheatreCore\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Symfony\Component\Validator\Constraints as Assert;
  5. /**
  6.  * Classifications
  7.  *
  8.  * @ORM\Table(name="classifications", uniqueConstraints={@ORM\UniqueConstraint(name="classification", columns={"classification"})}, indexes={@ORM\Index(name="type", columns={"type"}), @ORM\Index(name="idgroupclassification", columns={"idgroupclassification"})})
  9.  * @ORM\Entity(repositoryClass="TheatreCore\Repository\ClassificationsRepository")
  10.  */
  11. class Classifications
  12. {
  13.     /**
  14.      * @var int
  15.      *
  16.      * @ORM\Column(name="idclassification", type="integer", nullable=false, options={"unsigned"=true})
  17.      * @ORM\Id
  18.      * @ORM\GeneratedValue(strategy="IDENTITY")
  19.      */
  20.     private $idclassification;
  21.     /**
  22.      * @var string
  23.      *
  24.      * @ORM\Column(name="classification", type="string", length=255, nullable=false)
  25.      *
  26.      * @Assert\NotBlank(message="Classification : veuillez préciser l'identifiant de classification")
  27.      * @Assert\Regex(
  28.      *     pattern="#^class_.+#",
  29.      *     match=true,
  30.      *     message="Classification : l'identifiant doit commencer par « class_ »"
  31.      * )
  32.      *
  33.      */
  34.     private $classification;
  35.     /**
  36.      * @var string|null
  37.      *
  38.      * @ORM\Column(name="public_name", type="string", length=255, nullable=true)
  39.      *
  40.      */
  41.     private $publicName;
  42.     /**
  43.      * @var string
  44.      *
  45.      * @ORM\Column(name="type", type="string", length=0, nullable=false)
  46.      */
  47.     private $type;
  48.     /**
  49.      * @var bool
  50.      *
  51.      * @ORM\Column(name="texts", type="boolean", nullable=false)
  52.      */
  53.     private $texts false;
  54.     /**
  55.      * @var bool
  56.      *
  57.      * @ORM\Column(name="spectacles", type="boolean", nullable=false)
  58.      */
  59.     private $spectacles false;
  60.     /**
  61.      * @var bool
  62.      *
  63.      * @ORM\Column(name="persons", type="boolean", nullable=false)
  64.      */
  65.     private $persons false;
  66.     /**
  67.      * @var bool
  68.      *
  69.      * @ORM\Column(name="contacts", type="boolean", nullable=false)
  70.      */
  71.     private $contacts false;
  72.     /**
  73.      * @var bool
  74.      *
  75.      * @ORM\Column(name="contents", type="boolean", nullable=false)
  76.      */
  77.     private $contents false;
  78.     /**
  79.      * @var bool
  80.      *
  81.      * @ORM\Column(name="files", type="boolean", nullable=false)
  82.      */
  83.     private $files false;
  84.     /**
  85.      * @var bool
  86.      *
  87.      * @ORM\Column(name="multimedias", type="boolean", nullable=false)
  88.      */
  89.     private $multimedias false;
  90.     /**
  91.      * @var bool
  92.      *
  93.      * @ORM\Column(name="dvds", type="boolean", nullable=false)
  94.      */
  95.     private $dvds false;
  96.     /**
  97.      * @var bool
  98.      *
  99.      * @ORM\Column(name="playlists", type="boolean", nullable=false)
  100.      */
  101.     private $playlists false;
  102.     /**
  103.      * @var bool
  104.      *
  105.      * @ORM\Column(name="lagarce", type="boolean", nullable=false)
  106.      */
  107.     private $lagarce false;
  108.     /**
  109.      * @var int|null
  110.      *
  111.      * @ORM\Column(name="idgroupclassification", type="smallint", nullable=true, options={"unsigned"=true})
  112.      */
  113.     private $idgroupclassification;
  114.     /**
  115.      * @var bool|null
  116.      *
  117.      * @ORM\Column(name="is_public", type="boolean", nullable=true)
  118.      */
  119.     private $isPublic false;
  120.     /**
  121.      * @var int|null
  122.      *
  123.      * @ORM\Column(name="`range`", type="smallint", nullable=true, options={"unsigned"=true})
  124.      */
  125.     private $range;
  126.     /**
  127.      * @var \Doctrine\Common\Collections\Collection
  128.      *
  129.      * @ORM\ManyToMany(targetEntity="Modules", inversedBy="idclassification")
  130.      * @ORM\JoinTable(name="classification_module",
  131.      *   joinColumns={
  132.      *     @ORM\JoinColumn(name="idclassification", referencedColumnName="idclassification")
  133.      *   },
  134.      *   inverseJoinColumns={
  135.      *     @ORM\JoinColumn(name="module", referencedColumnName="module")
  136.      *   }
  137.      * )
  138.      */
  139.     private $module;
  140.     /**
  141.      * @var \Doctrine\Common\Collections\Collection
  142.      *
  143.      * @ORM\ManyToMany(targetEntity="Contacts", mappedBy="idclassification")
  144.      */
  145.     private $idcontact;
  146.     /**
  147.      * @var \Doctrine\Common\Collections\Collection
  148.      *
  149.      * @ORM\ManyToMany(targetEntity="Contents", mappedBy="content_classification")
  150.      */
  151.     private $idcontent;
  152.     /**
  153.      * @var \Doctrine\Common\Collections\Collection
  154.      *
  155.      * @ORM\ManyToMany(targetEntity="Files", mappedBy="idclassification")
  156.      */
  157.     private $idfile;
  158.     /**
  159.      * @var \Doctrine\Common\Collections\Collection
  160.      *
  161.      * @ORM\ManyToMany(targetEntity="Multimedias", mappedBy="idclassification")
  162.      */
  163.     private $idmultimedia;
  164.     /**
  165.      * @var \Doctrine\Common\Collections\Collection
  166.      *
  167.      * @ORM\ManyToMany(targetEntity="Persons", mappedBy="person_classification")
  168.      */
  169.     private $idperson;
  170.     /**
  171.      * @var \Doctrine\Common\Collections\Collection
  172.      *
  173.      * @ORM\ManyToMany(targetEntity="Playlists", mappedBy="idclassification")
  174.      */
  175.     private $idplaylist;
  176.     /**
  177.      * @var \Doctrine\Common\Collections\Collection
  178.      *
  179.      * @ORM\ManyToMany(targetEntity="Spectacles", mappedBy="idclassification")
  180.      */
  181.     private $idspectacle;
  182.     /**
  183.      * @var \Doctrine\Common\Collections\Collection
  184.      *
  185.      * @ORM\ManyToMany(targetEntity="Templates", mappedBy="idclassification")
  186.      */
  187.     private $idtemplate;
  188.     /**
  189.      * @var \Doctrine\Common\Collections\Collection
  190.      *
  191.      * @ORM\ManyToMany(targetEntity="Texts", mappedBy="text_classification")
  192.      */
  193.     private $idtext;
  194.     /**
  195.      * Constructor
  196.      */
  197.     public function __construct()
  198.     {
  199.         $this->module = new \Doctrine\Common\Collections\ArrayCollection();
  200.         $this->idcontact = new \Doctrine\Common\Collections\ArrayCollection();
  201.         $this->idcontent = new \Doctrine\Common\Collections\ArrayCollection();
  202.         $this->idfile = new \Doctrine\Common\Collections\ArrayCollection();
  203.         $this->idmultimedia = new \Doctrine\Common\Collections\ArrayCollection();
  204.         $this->idperson = new \Doctrine\Common\Collections\ArrayCollection();
  205.         $this->idplaylist = new \Doctrine\Common\Collections\ArrayCollection();
  206.         $this->idspectacle = new \Doctrine\Common\Collections\ArrayCollection();
  207.         $this->idtemplate = new \Doctrine\Common\Collections\ArrayCollection();
  208.         $this->idtext = new \Doctrine\Common\Collections\ArrayCollection();
  209.     }
  210.     /**
  211.      * Get idclassification.
  212.      *
  213.      * @return int
  214.      */
  215.     public function getIdclassification()
  216.     {
  217.         return $this->idclassification;
  218.     }
  219.     /**
  220.      * Set classification.
  221.      *
  222.      * @param string $classification
  223.      *
  224.      * @return Classifications
  225.      */
  226.     public function setClassification($classification)
  227.     {
  228.         $this->classification $classification;
  229.         return $this;
  230.     }
  231.     /**
  232.      * Get classification.
  233.      *
  234.      * @return string
  235.      */
  236.     public function getClassification()
  237.     {
  238.         return $this->classification;
  239.     }
  240.     /**
  241.      * Set publicName.
  242.      *
  243.      * @param string|null $publicName
  244.      *
  245.      * @return Classifications
  246.      */
  247.     public function setPublicName($publicName null)
  248.     {
  249.         $this->publicName $publicName;
  250.         return $this;
  251.     }
  252.     /**
  253.      * Get publicName.
  254.      *
  255.      * @return string|null
  256.      */
  257.     public function getPublicName()
  258.     {
  259.         return $this->publicName;
  260.     }
  261.     /**
  262.      * Set type.
  263.      *
  264.      * @param string $type
  265.      *
  266.      * @return Classifications
  267.      */
  268.     public function setType($type)
  269.     {
  270.         $this->type $type;
  271.         return $this;
  272.     }
  273.     /**
  274.      * Get type.
  275.      *
  276.      * @return string
  277.      */
  278.     public function getType()
  279.     {
  280.         return $this->type;
  281.     }
  282.     /**
  283.      * Set texts.
  284.      *
  285.      * @param bool $texts
  286.      *
  287.      * @return Classifications
  288.      */
  289.     public function setTexts($texts)
  290.     {
  291.         $this->texts $texts;
  292.         return $this;
  293.     }
  294.     /**
  295.      * Get texts.
  296.      *
  297.      * @return bool
  298.      */
  299.     public function getTexts()
  300.     {
  301.         return $this->texts;
  302.     }
  303.     /**
  304.      * Set spectacles.
  305.      *
  306.      * @param bool $spectacles
  307.      *
  308.      * @return Classifications
  309.      */
  310.     public function setSpectacles($spectacles)
  311.     {
  312.         $this->spectacles $spectacles;
  313.         return $this;
  314.     }
  315.     /**
  316.      * Get spectacles.
  317.      *
  318.      * @return bool
  319.      */
  320.     public function getSpectacles()
  321.     {
  322.         return $this->spectacles;
  323.     }
  324.     /**
  325.      * Set persons.
  326.      *
  327.      * @param bool $persons
  328.      *
  329.      * @return Classifications
  330.      */
  331.     public function setPersons($persons)
  332.     {
  333.         $this->persons $persons;
  334.         return $this;
  335.     }
  336.     /**
  337.      * Get persons.
  338.      *
  339.      * @return bool
  340.      */
  341.     public function getPersons()
  342.     {
  343.         return $this->persons;
  344.     }
  345.     /**
  346.      * Set contacts.
  347.      *
  348.      * @param bool $contacts
  349.      *
  350.      * @return Classifications
  351.      */
  352.     public function setContacts($contacts)
  353.     {
  354.         $this->contacts $contacts;
  355.         return $this;
  356.     }
  357.     /**
  358.      * Get contacts.
  359.      *
  360.      * @return bool
  361.      */
  362.     public function getContacts()
  363.     {
  364.         return $this->contacts;
  365.     }
  366.     /**
  367.      * Set contents.
  368.      *
  369.      * @param bool $contents
  370.      *
  371.      * @return Classifications
  372.      */
  373.     public function setContents($contents)
  374.     {
  375.         $this->contents $contents;
  376.         return $this;
  377.     }
  378.     /**
  379.      * Get contents.
  380.      *
  381.      * @return bool
  382.      */
  383.     public function getContents()
  384.     {
  385.         return $this->contents;
  386.     }
  387.     /**
  388.      * Set files.
  389.      *
  390.      * @param bool $files
  391.      *
  392.      * @return Classifications
  393.      */
  394.     public function setFiles($files)
  395.     {
  396.         $this->files $files;
  397.         return $this;
  398.     }
  399.     /**
  400.      * Get files.
  401.      *
  402.      * @return bool
  403.      */
  404.     public function getFiles()
  405.     {
  406.         return $this->files;
  407.     }
  408.     /**
  409.      * Set multimedias.
  410.      *
  411.      * @param bool $multimedias
  412.      *
  413.      * @return Classifications
  414.      */
  415.     public function setMultimedias($multimedias)
  416.     {
  417.         $this->multimedias $multimedias;
  418.         return $this;
  419.     }
  420.     /**
  421.      * Get multimedias.
  422.      *
  423.      * @return bool
  424.      */
  425.     public function getMultimedias()
  426.     {
  427.         return $this->multimedias;
  428.     }
  429.     /**
  430.      * Set dvds.
  431.      *
  432.      * @param bool $dvds
  433.      *
  434.      * @return Classifications
  435.      */
  436.     public function setDvds($dvds)
  437.     {
  438.         $this->dvds $dvds;
  439.         return $this;
  440.     }
  441.     /**
  442.      * Get dvds.
  443.      *
  444.      * @return bool
  445.      */
  446.     public function getDvds()
  447.     {
  448.         return $this->dvds;
  449.     }
  450.     /**
  451.      * Set playlists.
  452.      *
  453.      * @param bool $playlists
  454.      *
  455.      * @return Classifications
  456.      */
  457.     public function setPlaylists($playlists)
  458.     {
  459.         $this->playlists $playlists;
  460.         return $this;
  461.     }
  462.     /**
  463.      * Get playlists.
  464.      *
  465.      * @return bool
  466.      */
  467.     public function getPlaylists()
  468.     {
  469.         return $this->playlists;
  470.     }
  471.     /**
  472.      * Set lagarce.
  473.      *
  474.      * @param bool $lagarce
  475.      *
  476.      * @return Classifications
  477.      */
  478.     public function setLagarce($lagarce)
  479.     {
  480.         $this->lagarce $lagarce;
  481.         return $this;
  482.     }
  483.     /**
  484.      * Get lagarce.
  485.      *
  486.      * @return bool
  487.      */
  488.     public function getLagarce()
  489.     {
  490.         return $this->lagarce;
  491.     }
  492.     /**
  493.      * Set idgroupclassification.
  494.      *
  495.      * @param int|null $idgroupclassification
  496.      *
  497.      * @return Classifications
  498.      */
  499.     public function setIdgroupclassification($idgroupclassification null)
  500.     {
  501.         $this->idgroupclassification $idgroupclassification;
  502.         return $this;
  503.     }
  504.     /**
  505.      * Get idgroupclassification.
  506.      *
  507.      * @return int|null
  508.      */
  509.     public function getIdgroupclassification()
  510.     {
  511.         return $this->idgroupclassification;
  512.     }
  513.     /**
  514.      * Set isPublic.
  515.      *
  516.      * @param bool|null $isPublic
  517.      *
  518.      * @return Classifications
  519.      */
  520.     public function setIsPublic($isPublic null)
  521.     {
  522.         $this->isPublic $isPublic;
  523.         return $this;
  524.     }
  525.     /**
  526.      * Get isPublic.
  527.      *
  528.      * @return bool|null
  529.      */
  530.     public function getIsPublic()
  531.     {
  532.         return $this->isPublic;
  533.     }
  534.     /**
  535.      * Set range.
  536.      *
  537.      * @param int|null $range
  538.      *
  539.      * @return Classifications
  540.      */
  541.     public function setRange($range null)
  542.     {
  543.         $this->range $range;
  544.         return $this;
  545.     }
  546.     /**
  547.      * Get range.
  548.      *
  549.      * @return int|null
  550.      */
  551.     public function getRange()
  552.     {
  553.         return $this->range;
  554.     }
  555.     /**
  556.      * Add module.
  557.      *
  558.      * @param \Modules $module
  559.      *
  560.      * @return Classifications
  561.      */
  562.     public function addModule(Modules $module)
  563.     {
  564.         $this->module[] = $module;
  565.         return $this;
  566.     }
  567.     /**
  568.      * Remove module.
  569.      *
  570.      * @param \Modules $module
  571.      *
  572.      * @return boolean TRUE if this collection contained the specified element, FALSE otherwise.
  573.      */
  574.     public function removeModule(Modules $module)
  575.     {
  576.         return $this->module->removeElement($module);
  577.     }
  578.     /**
  579.      * Get module.
  580.      *
  581.      * @return \Doctrine\Common\Collections\Collection
  582.      */
  583.     public function getModule()
  584.     {
  585.         return $this->module;
  586.     }
  587.     /**
  588.      * Add idcontact.
  589.      *
  590.      * @param \Contacts $idcontact
  591.      *
  592.      * @return Classifications
  593.      */
  594.     public function addIdcontact(Contacts $idcontact)
  595.     {
  596.         $this->idcontact[] = $idcontact;
  597.         return $this;
  598.     }
  599.     /**
  600.      * Remove idcontact.
  601.      *
  602.      * @param \Contacts $idcontact
  603.      *
  604.      * @return boolean TRUE if this collection contained the specified element, FALSE otherwise.
  605.      */
  606.     public function removeIdcontact(Contacts $idcontact)
  607.     {
  608.         return $this->idcontact->removeElement($idcontact);
  609.     }
  610.     /**
  611.      * Get idcontact.
  612.      *
  613.      * @return \Doctrine\Common\Collections\Collection
  614.      */
  615.     public function getIdcontact()
  616.     {
  617.         return $this->idcontact;
  618.     }
  619.     /**
  620.      * Add idcontent.
  621.      *
  622.      * @param \Contents $idcontent
  623.      *
  624.      * @return Classifications
  625.      */
  626.     public function addIdcontent(Contents $idcontent)
  627.     {
  628.         $this->idcontent[] = $idcontent;
  629.         return $this;
  630.     }
  631.     /**
  632.      * Remove idcontent.
  633.      *
  634.      * @param \Contents $idcontent
  635.      *
  636.      * @return boolean TRUE if this collection contained the specified element, FALSE otherwise.
  637.      */
  638.     public function removeIdcontent(Contents $idcontent)
  639.     {
  640.         return $this->idcontent->removeElement($idcontent);
  641.     }
  642.     /**
  643.      * Get idcontent.
  644.      *
  645.      * @return \Doctrine\Common\Collections\Collection
  646.      */
  647.     public function getIdcontent()
  648.     {
  649.         return $this->idcontent;
  650.     }
  651.     /**
  652.      * Add idfile.
  653.      *
  654.      * @param \Files $idfile
  655.      *
  656.      * @return Classifications
  657.      */
  658.     public function addIdfile(Files $idfile)
  659.     {
  660.         $this->idfile[] = $idfile;
  661.         return $this;
  662.     }
  663.     /**
  664.      * Remove idfile.
  665.      *
  666.      * @param \Files $idfile
  667.      *
  668.      * @return boolean TRUE if this collection contained the specified element, FALSE otherwise.
  669.      */
  670.     public function removeIdfile(Files $idfile)
  671.     {
  672.         return $this->idfile->removeElement($idfile);
  673.     }
  674.     /**
  675.      * Get idfile.
  676.      *
  677.      * @return \Doctrine\Common\Collections\Collection
  678.      */
  679.     public function getIdfile()
  680.     {
  681.         return $this->idfile;
  682.     }
  683.     /**
  684.      * Add idmultimedia.
  685.      *
  686.      * @param \Multimedias $idmultimedia
  687.      *
  688.      * @return Classifications
  689.      */
  690.     public function addIdmultimedia(Multimedias $idmultimedia)
  691.     {
  692.         $this->idmultimedia[] = $idmultimedia;
  693.         return $this;
  694.     }
  695.     /**
  696.      * Remove idmultimedia.
  697.      *
  698.      * @param \Multimedias $idmultimedia
  699.      *
  700.      * @return boolean TRUE if this collection contained the specified element, FALSE otherwise.
  701.      */
  702.     public function removeIdmultimedia(Multimedias $idmultimedia)
  703.     {
  704.         return $this->idmultimedia->removeElement($idmultimedia);
  705.     }
  706.     /**
  707.      * Get idmultimedia.
  708.      *
  709.      * @return \Doctrine\Common\Collections\Collection
  710.      */
  711.     public function getIdmultimedia()
  712.     {
  713.         return $this->idmultimedia;
  714.     }
  715.     /**
  716.      * Add idperson.
  717.      *
  718.      * @param \Persons $idperson
  719.      *
  720.      * @return Classifications
  721.      */
  722.     public function addIdperson(Persons $idperson)
  723.     {
  724.         $this->idperson[] = $idperson;
  725.         return $this;
  726.     }
  727.     /**
  728.      * Remove idperson.
  729.      *
  730.      * @param \Persons $idperson
  731.      *
  732.      * @return boolean TRUE if this collection contained the specified element, FALSE otherwise.
  733.      */
  734.     public function removeIdperson(Persons $idperson)
  735.     {
  736.         return $this->idperson->removeElement($idperson);
  737.     }
  738.     /**
  739.      * Get idperson.
  740.      *
  741.      * @return \Doctrine\Common\Collections\Collection
  742.      */
  743.     public function getIdperson()
  744.     {
  745.         return $this->idperson;
  746.     }
  747.     /**
  748.      * Add idplaylist.
  749.      *
  750.      * @param \Playlists $idplaylist
  751.      *
  752.      * @return Classifications
  753.      */
  754.     public function addIdplaylist(Playlists $idplaylist)
  755.     {
  756.         $this->idplaylist[] = $idplaylist;
  757.         return $this;
  758.     }
  759.     /**
  760.      * Remove idplaylist.
  761.      *
  762.      * @param \Playlists $idplaylist
  763.      *
  764.      * @return boolean TRUE if this collection contained the specified element, FALSE otherwise.
  765.      */
  766.     public function removeIdplaylist(Playlists $idplaylist)
  767.     {
  768.         return $this->idplaylist->removeElement($idplaylist);
  769.     }
  770.     /**
  771.      * Get idplaylist.
  772.      *
  773.      * @return \Doctrine\Common\Collections\Collection
  774.      */
  775.     public function getIdplaylist()
  776.     {
  777.         return $this->idplaylist;
  778.     }
  779.     /**
  780.      * Add idspectacle.
  781.      *
  782.      * @param \Spectacles $idspectacle
  783.      *
  784.      * @return Classifications
  785.      */
  786.     public function addIdspectacle(Spectacles $idspectacle)
  787.     {
  788.         $this->idspectacle[] = $idspectacle;
  789.         return $this;
  790.     }
  791.     /**
  792.      * Remove idspectacle.
  793.      *
  794.      * @param \Spectacles $idspectacle
  795.      *
  796.      * @return boolean TRUE if this collection contained the specified element, FALSE otherwise.
  797.      */
  798.     public function removeIdspectacle(Spectacles $idspectacle)
  799.     {
  800.         return $this->idspectacle->removeElement($idspectacle);
  801.     }
  802.     /**
  803.      * Get idspectacle.
  804.      *
  805.      * @return \Doctrine\Common\Collections\Collection
  806.      */
  807.     public function getIdspectacle()
  808.     {
  809.         return $this->idspectacle;
  810.     }
  811.     /**
  812.      * Add idtemplate.
  813.      *
  814.      * @param \Templates $idtemplate
  815.      *
  816.      * @return Classifications
  817.      */
  818.     public function addIdtemplate(Templates $idtemplate)
  819.     {
  820.         $this->idtemplate[] = $idtemplate;
  821.         return $this;
  822.     }
  823.     /**
  824.      * Remove idtemplate.
  825.      *
  826.      * @param \Templates $idtemplate
  827.      *
  828.      * @return boolean TRUE if this collection contained the specified element, FALSE otherwise.
  829.      */
  830.     public function removeIdtemplate(Templates $idtemplate)
  831.     {
  832.         return $this->idtemplate->removeElement($idtemplate);
  833.     }
  834.     /**
  835.      * Get idtemplate.
  836.      *
  837.      * @return \Doctrine\Common\Collections\Collection
  838.      */
  839.     public function getIdtemplate()
  840.     {
  841.         return $this->idtemplate;
  842.     }
  843.     /**
  844.      * Add idtext.
  845.      *
  846.      * @param \Texts $idtext
  847.      *
  848.      * @return Classifications
  849.      */
  850.     public function addIdtext(Texts $idtext)
  851.     {
  852.         $this->idtext[] = $idtext;
  853.         return $this;
  854.     }
  855.     /**
  856.      * Remove idtext.
  857.      *
  858.      * @param \Texts $idtext
  859.      *
  860.      * @return boolean TRUE if this collection contained the specified element, FALSE otherwise.
  861.      */
  862.     public function removeIdtext(Texts $idtext)
  863.     {
  864.         return $this->idtext->removeElement($idtext);
  865.     }
  866.     /**
  867.      * Get idtext.
  868.      *
  869.      * @return \Doctrine\Common\Collections\Collection
  870.      */
  871.     public function getIdtext()
  872.     {
  873.         return $this->idtext;
  874.     }
  875.     public function __toString() {
  876.         return $this->classification;
  877.     }
  878. }