src/Entity/Pagina.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Symfony\Component\Validator\Constraints as Assert;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Doctrine\ORM\Mapping\OrderBy;
  7. use App\Repository\PaginaRepository;
  8. /**
  9.  * Pagina
  10.  */
  11.  #[ORM\Table("Pagina")]
  12.  #[ORM\Entity(repositoryClass:"App\Repository\PaginaRepository")]
  13. class Pagina {
  14.     /**
  15.      * @var integer
  16.      */
  17.      #[ORM\Column(name:"id"type:"integer")]
  18.      #[ORM\Id]
  19.      #[ORM\GeneratedValue(strategy:"AUTO")]
  20.     private $id;
  21.     /**
  22.      * @var string
  23.      */
  24.      #[ORM\Column(name:"nom"type:"string"length:255nullable:true)]
  25.      #[Assert\NotBlank()]
  26.     private $nom;
  27.     /**
  28.      * @var string
  29.      */
  30.      #[ORM\Column(name:"titol_ca"type:"string"length:255)]
  31.      #[Assert\NotBlank()]
  32.     private $titol_ca;
  33.     /**
  34.      * @var string
  35.      */
  36.      #[ORM\Column(name:"titol_es"type:"string"length:255)]
  37.      #[Assert\NotBlank()]
  38.     private $titol_es;
  39.     /**
  40.      * @var string
  41.      */
  42.      #[ORM\Column(name:"titol_en"type:"string"length:255)]
  43.      #[Assert\NotBlank()]
  44.     private $titol_en;
  45.     /**
  46.      * @var string
  47.      */
  48.      #[ORM\Column(name:"titol_fr"type:"string"length:255)]
  49.      #[Assert\NotBlank()]
  50.     private $titol_fr;
  51.     /**
  52.      * @var string
  53.      */
  54.      #[ORM\Column(name:"titol_pt"type:"string"length:255nullable:true)]
  55.     private $titol_pt;
  56.     /**
  57.      * @var string
  58.      */
  59.      #[ORM\Column(name:"slug_ca"type:"string"length:255)]
  60.      #[Assert\NotBlank()]
  61.     private $slug_ca;
  62.     /**
  63.      * @var string
  64.      */
  65.      #[ORM\Column(name:"slug_es"type:"string"length:255)]
  66.      #[Assert\NotBlank()]
  67.     private $slug_es;
  68.     /**
  69.      * @var string
  70.      */
  71.      #[ORM\Column(name:"slug_en"type:"string"length:255)]
  72.      #[Assert\NotBlank()]
  73.     private $slug_en;
  74.     /**
  75.      * @var string
  76.      */
  77.      #[ORM\Column(name:"slug_fr"type:"string"length:255)]
  78.      #[Assert\NotBlank()]
  79.     private $slug_fr;
  80.     /**
  81.      * @var string
  82.      */
  83.      #[ORM\Column(name:"slug_pt"type:"string"length:255nullable:true)]
  84.     private $slug_pt;
  85.     /**
  86.      * @var string
  87.      */
  88.      #[ORM\Column(name:"title_ca"type:"string"length:60nullable:true)]
  89.     private $title_ca;
  90.     /**
  91.      * @var string
  92.      */
  93.      #[ORM\Column(name:"title_es"type:"string"length:60nullable:true)]
  94.     private $title_es;
  95.     /**
  96.      * @var string
  97.      */
  98.      #[ORM\Column(name:"title_en"type:"string"length:60nullable:true)]
  99.     private $title_en;
  100.     /**
  101.      * @var string
  102.      */
  103.      #[ORM\Column(name:"title_fr"type:"string"length:60nullable:true)]
  104.     private $title_fr;
  105.     /**
  106.      * @var string
  107.      */
  108.      #[ORM\Column(name:"title_pt"type:"string"length:60nullable:true)]
  109.     private $title_pt;
  110.     /**
  111.      * @var string
  112.      */
  113.      #[ORM\Column(name:"description_ca"type:"string"length:160nullable:true)]
  114.     private $description_ca;
  115.     /**
  116.      * @var string
  117.      */
  118.      #[ORM\Column(name:"description_es"type:"string"length:160nullable:true)]
  119.     private $description_es;
  120.     /**
  121.      * @var string
  122.      */
  123.      #[ORM\Column(name:"description_en"type:"string"length:160nullable:true)]
  124.     private $description_en;
  125.     /**
  126.      * @var string
  127.      */
  128.      #[ORM\Column(name:"description_fr"type:"string"length:160nullable:true)]
  129.     private $description_fr;
  130.     /**
  131.      * @var string
  132.      */
  133.      #[ORM\Column(name:"description_pt"type:"string"length:160nullable:true)]
  134.     private $description_pt;
  135.     /**
  136.      * @var string
  137.      */
  138.      #[ORM\Column(name:"keywords_ca"type:"string"length:255nullable:true)]
  139.     private $keywords_ca;
  140.     /**
  141.      * @var string
  142.      */
  143.      #[ORM\Column(name:"keywords_es"type:"string"length:255nullable:true)]
  144.     private $keywords_es;
  145.     /**
  146.      * @var string
  147.      */
  148.      #[ORM\Column(name:"keywords_en"type:"string"length:255nullable:true)]
  149.     private $keywords_en;
  150.     /**
  151.      * @var string
  152.      */
  153.      #[ORM\Column(name:"keywords_fr"type:"string"length:255nullable:true)]
  154.     private $keywords_fr;
  155.     /**
  156.      * @var string
  157.      */
  158.      #[ORM\Column(name:"keywords_pt"type:"string"length:255nullable:true)]
  159.     private $keywords_pt;
  160.     /**
  161.      * @var boolean
  162.      */
  163.      #[ORM\Column(name:"visible"type:"boolean"nullable:true)]
  164.     private $visible;
  165.    /**
  166.      * @var boolean
  167.      */
  168.      #[ORM\Column(name:"visible_menu"type:"boolean"nullable:true)]
  169.     private $visibleMenu;
  170.     /**
  171.      * @var integer
  172.      */
  173.      #[ORM\Column(name:"ordre"type:"integer"nullable:true)]
  174.     private $ordre;
  175.     
  176.     #[ORM\ManyToOne(targetEntity:"App\Entity\Sidebar")]
  177.     private $sidebar;
  178.     #[ORM\ManyToOne(targetEntity:"App\Entity\Tema")]
  179.     private $tema;
  180.     #[ORM\ManyToOne(targetEntity:"App\Entity\Galeries")]
  181.     private $galeries;
  182.     #[ORM\OneToMany(targetEntity:"Bloc"mappedBy:"pagina"cascade:["persist""remove"])]
  183.     #[OrderBy(["ordre" => "ASC"])]
  184.     protected $blocs;
  185.     
  186.     #[ORM\OneToMany(targetEntity:"MenuOpcio"mappedBy:"pagina"cascade:["persist""remove"])]
  187.     #[OrderBy(["ordre" => "ASC"])]
  188.     protected $menuOpcions;
  189.     public function __construct()
  190.     {
  191.         $this->blocs = new ArrayCollection();
  192.         $this->menuOpcions = new ArrayCollection();
  193.         $this->visible false;
  194.         $this->visibleMenu false;
  195.     }
  196.     /**
  197.      * Get id
  198.      *
  199.      * @return integer
  200.      */
  201.     public function getId()
  202.     {
  203.         return $this->id;
  204.     }
  205.     /**
  206.      * Set nom
  207.      *
  208.      * @param string $nom El nom intern, només visible en el backend
  209.      */
  210.     public function setNom($nom)
  211.     {
  212.         $this->nom $nom;
  213.         return $this;
  214.     }
  215.     /**
  216.      * Get nom
  217.      *
  218.      */
  219.     public function getNom()
  220.     {
  221.         return $this->nom;
  222.     }
  223.     /**
  224.      * Set titol
  225.      *
  226.      * @param string $titol
  227.      * @param string $locale
  228.      * @return Pagina
  229.      */
  230.     public function setTitol($titol$locale)
  231.     {
  232.         $this->{"titol_" $locale} = $titol;
  233.         return $this;
  234.     }
  235.     /**
  236.      * Get titol
  237.      *
  238.      * @param string $locale
  239.      * @return string
  240.      */
  241.     public function getTitol($locale "ca")
  242.     {
  243.         return $this->{"titol_" $locale};
  244.     }
  245.     /**
  246.      * Set slug
  247.      *
  248.      * @param string $slug
  249.      * @param string $locale
  250.      * @return Pagina
  251.      */
  252.     public function setSlug($slug$locale)
  253.     {
  254.         $this->{"slug_" $locale} = $slug;
  255.         return $this;
  256.     }
  257.     /**
  258.      * Get slug
  259.      *
  260.      * @param string $locale
  261.      * @return string
  262.      */
  263.     public function getSlug($locale "ca")
  264.     {
  265.         return $this->{"slug_" $locale};
  266.     }
  267.     /**
  268.      * Set title
  269.      *
  270.      * @param string $title
  271.      * @param string $locale
  272.      * @return Pagina
  273.      */
  274.     public function setTitle($title$locale)
  275.     {
  276.         $this->{"title_" $locale} = $title;
  277.         return $this;
  278.     }
  279.     /**
  280.      * Get title
  281.      *
  282.      * @param string $locale
  283.      * @return string
  284.      */
  285.     public function getTitle($locale "ca")
  286.     {
  287.         return $this->{"title_" $locale};
  288.     }
  289.     /**
  290.      * Set description
  291.      *
  292.      * @param string $description
  293.      * @param string $locale
  294.      * @return Pagina
  295.      */
  296.     public function setDescription($description$locale)
  297.     {
  298.         $this->{"description_" $locale} = $description;
  299.         return $this;
  300.     }
  301.     /**
  302.      * Get description
  303.      *
  304.      * @param string $locale
  305.      * @return string
  306.      */
  307.     public function getDescription($locale "ca")
  308.     {
  309.         return $this->{"description_" $locale};
  310.     }
  311.     /**
  312.      * Set keywords
  313.      *
  314.      * @param string $keywords
  315.      * @param string $locale
  316.      * @return Pagina
  317.      */
  318.     public function setKeywords($keywords$locale)
  319.     {
  320.         $this->{"keywords_" $locale} = $keywords;
  321.         return $this;
  322.     }
  323.     /**
  324.      * Get keywords
  325.      *
  326.      * @param string $locale
  327.      * @return string
  328.      */
  329.     public function getKeywords($locale "ca")
  330.     {
  331.         return $this->{"keywords_" $locale};
  332.     }
  333.     /**
  334.      * Set visible
  335.      *
  336.      * @param boolean $visible
  337.      * @return Pagina
  338.      */
  339.     public function setVisible($visible)
  340.     {
  341.         $this->visible $visible;
  342.         return $this;
  343.     }
  344.     /**
  345.      * Get visible
  346.      *
  347.      * @return boolean
  348.      */
  349.     public function getVisible()
  350.     {
  351.         return $this->visible;
  352.     }
  353.     /**
  354.      * Set Sidebar
  355.      *
  356.      * @param \App\Entity\Sidebar $sidebar
  357.      * @return Pagina
  358.      */
  359.     public function setSidebar(\App\Entity\Sidebar $sidebar)
  360.     {
  361.         $this->sidebar $sidebar;
  362.         return $this;
  363.     }
  364.     /**
  365.      * Get sidebar
  366.      *
  367.      * @return string
  368.      */
  369.     public function getSidebar()
  370.     {
  371.         return $this->sidebar;
  372.     }
  373.     
  374.     /**
  375.      * Set Tema
  376.      *
  377.      * @param \App\Entity\Tema $tema
  378.      * @return Pagina
  379.      */
  380.     public function setTema(\App\Entity\Tema $tema)
  381.     {
  382.         $this->tema $tema;
  383.         return $this;
  384.     }
  385.     /**
  386.      * Get tema
  387.      *
  388.      * @return string
  389.      */
  390.     public function getTema()
  391.     {
  392.         return $this->tema;
  393.     }
  394.     public function getBlocs()
  395.     {
  396.         return $this->blocs;
  397.     }
  398.     
  399.     public function getMenuOpcions()
  400.     {
  401.         return $this->menuOpcions;
  402.     }
  403.     public function __toString()
  404.     {
  405.         return $this->nom;
  406.     }
  407.     /**
  408.      * Set titol_ca
  409.      *
  410.      * @param string $titolCa
  411.      * @return Pagina
  412.      */
  413.     public function setTitolCa($titolCa)
  414.     {
  415.         $this->titol_ca $titolCa;
  416.         return $this;
  417.     }
  418.     /**
  419.      * Get titol_ca
  420.      *
  421.      * @return string 
  422.      */
  423.     public function getTitolCa()
  424.     {
  425.         return $this->titol_ca;
  426.     }
  427.     /**
  428.      * Set titol_es
  429.      *
  430.      * @param string $titolEs
  431.      * @return Pagina
  432.      */
  433.     public function setTitolEs($titolEs)
  434.     {
  435.         $this->titol_es $titolEs;
  436.         return $this;
  437.     }
  438.     /**
  439.      * Get titol_es
  440.      *
  441.      * @return string 
  442.      */
  443.     public function getTitolEs()
  444.     {
  445.         return $this->titol_es;
  446.     }
  447.     /**
  448.      * Set titol_en
  449.      *
  450.      * @param string $titolEn
  451.      * @return Pagina
  452.      */
  453.     public function setTitolEn($titolEn)
  454.     {
  455.         $this->titol_en $titolEn;
  456.         return $this;
  457.     }
  458.     /**
  459.      * Get titol_en
  460.      *
  461.      * @return string 
  462.      */
  463.     public function getTitolEn()
  464.     {
  465.         return $this->titol_en;
  466.     }
  467.     /**
  468.      * Set titol_fr
  469.      *
  470.      * @param string $titolFr
  471.      * @return Pagina
  472.      */
  473.     public function setTitolFr($titolFr)
  474.     {
  475.         $this->titol_fr $titolFr;
  476.         return $this;
  477.     }
  478.     /**
  479.      * Get titol_fr
  480.      *
  481.      * @return string 
  482.      */
  483.     public function getTitolFr()
  484.     {
  485.         return $this->titol_fr;
  486.     }
  487.     /**
  488.      * Set titol_pt
  489.      *
  490.      * @param string $titolPt
  491.      * @return Pagina
  492.      */
  493.     public function setTitolPt($titolPt)
  494.     {
  495.         $this->titol_pt $titolPt;
  496.         return $this;
  497.     }
  498.     /**
  499.      * Get titol_pt
  500.      *
  501.      * @return string 
  502.      */
  503.     public function getTitolPt()
  504.     {
  505.         return $this->titol_pt;
  506.     }
  507.     /**
  508.      * Set slug_ca
  509.      *
  510.      * @param string $slugCa
  511.      * @return Pagina
  512.      */
  513.     public function setSlugCa($slugCa)
  514.     {
  515.         $this->slug_ca $slugCa;
  516.         return $this;
  517.     }
  518.     /**
  519.      * Get slug_ca
  520.      *
  521.      * @return string 
  522.      */
  523.     public function getSlugCa()
  524.     {
  525.         return $this->slug_ca;
  526.     }
  527.     /**
  528.      * Set slug_es
  529.      *
  530.      * @param string $slugEs
  531.      * @return Pagina
  532.      */
  533.     public function setSlugEs($slugEs)
  534.     {
  535.         $this->slug_es $slugEs;
  536.         return $this;
  537.     }
  538.     /**
  539.      * Get slug_es
  540.      *
  541.      * @return string 
  542.      */
  543.     public function getSlugEs()
  544.     {
  545.         return $this->slug_es;
  546.     }
  547.     /**
  548.      * Set slug_en
  549.      *
  550.      * @param string $slugEn
  551.      * @return Pagina
  552.      */
  553.     public function setSlugEn($slugEn)
  554.     {
  555.         $this->slug_en $slugEn;
  556.         return $this;
  557.     }
  558.     /**
  559.      * Get slug_en
  560.      *
  561.      * @return string 
  562.      */
  563.     public function getSlugEn()
  564.     {
  565.         return $this->slug_en;
  566.     }
  567.     /**
  568.      * Set slug_fr
  569.      *
  570.      * @param string $slugFr
  571.      * @return Pagina
  572.      */
  573.     public function setSlugFr($slugFr)
  574.     {
  575.         $this->slug_fr $slugFr;
  576.         return $this;
  577.     }
  578.     /**
  579.      * Get slug_fr
  580.      *
  581.      * @return string 
  582.      */
  583.     public function getSlugFr()
  584.     {
  585.         return $this->slug_fr;
  586.     }
  587.     /**
  588.      * Set slug_pt
  589.      *
  590.      * @param string $slugPt
  591.      * @return Pagina
  592.      */
  593.     public function setSlugPt($slugPt)
  594.     {
  595.         $this->slug_pt $slugPt;
  596.         return $this;
  597.     }
  598.     /**
  599.      * Get slug_pt
  600.      *
  601.      * @return string 
  602.      */
  603.     public function getSlugPt()
  604.     {
  605.         return $this->slug_pt;
  606.     }
  607.     /**
  608.      * Set title_ca
  609.      *
  610.      * @param string $titleCa
  611.      * @return Pagina
  612.      */
  613.     public function setTitleCa($titleCa)
  614.     {
  615.         $this->title_ca $titleCa;
  616.         return $this;
  617.     }
  618.     /**
  619.      * Get title_ca
  620.      *
  621.      * @return string 
  622.      */
  623.     public function getTitleCa()
  624.     {
  625.         return $this->title_ca;
  626.     }
  627.     /**
  628.      * Set title_es
  629.      *
  630.      * @param string $titleEs
  631.      * @return Pagina
  632.      */
  633.     public function setTitleEs($titleEs)
  634.     {
  635.         $this->title_es $titleEs;
  636.         return $this;
  637.     }
  638.     /**
  639.      * Get title_es
  640.      *
  641.      * @return string 
  642.      */
  643.     public function getTitleEs()
  644.     {
  645.         return $this->title_es;
  646.     }
  647.     /**
  648.      * Set title_en
  649.      *
  650.      * @param string $titleEn
  651.      * @return Pagina
  652.      */
  653.     public function setTitleEn($titleEn)
  654.     {
  655.         $this->title_en $titleEn;
  656.         return $this;
  657.     }
  658.     /**
  659.      * Get title_en
  660.      *
  661.      * @return string 
  662.      */
  663.     public function getTitleEn()
  664.     {
  665.         return $this->title_en;
  666.     }
  667.     /**
  668.      * Set title_fr
  669.      *
  670.      * @param string $titleFr
  671.      * @return Pagina
  672.      */
  673.     public function setTitleFr($titleFr)
  674.     {
  675.         $this->title_fr $titleFr;
  676.         return $this;
  677.     }
  678.     /**
  679.      * Get title_fr
  680.      *
  681.      * @return string 
  682.      */
  683.     public function getTitleFr()
  684.     {
  685.         return $this->title_fr;
  686.     }
  687.     /**
  688.      * Set title_pt
  689.      *
  690.      * @param string $titlePt
  691.      * @return Pagina
  692.      */
  693.     public function setTitlePt($titlePt)
  694.     {
  695.         $this->title_pt $titlePt;
  696.         return $this;
  697.     }
  698.     /**
  699.      * Get title_pt
  700.      *
  701.      * @return string 
  702.      */
  703.     public function getTitlePt()
  704.     {
  705.         return $this->title_pt;
  706.     }
  707.     /**
  708.      * Set description_ca
  709.      *
  710.      * @param string $descriptionCa
  711.      * @return Pagina
  712.      */
  713.     public function setDescriptionCa($descriptionCa)
  714.     {
  715.         $this->description_ca $descriptionCa;
  716.         return $this;
  717.     }
  718.     /**
  719.      * Get description_ca
  720.      *
  721.      * @return string 
  722.      */
  723.     public function getDescriptionCa()
  724.     {
  725.         return $this->description_ca;
  726.     }
  727.     /**
  728.      * Set description_es
  729.      *
  730.      * @param string $descriptionEs
  731.      * @return Pagina
  732.      */
  733.     public function setDescriptionEs($descriptionEs)
  734.     {
  735.         $this->description_es $descriptionEs;
  736.         return $this;
  737.     }
  738.     /**
  739.      * Get description_es
  740.      *
  741.      * @return string 
  742.      */
  743.     public function getDescriptionEs()
  744.     {
  745.         return $this->description_es;
  746.     }
  747.     /**
  748.      * Set description_en
  749.      *
  750.      * @param string $descriptionEn
  751.      * @return Pagina
  752.      */
  753.     public function setDescriptionEn($descriptionEn)
  754.     {
  755.         $this->description_en $descriptionEn;
  756.         return $this;
  757.     }
  758.     /**
  759.      * Get description_en
  760.      *
  761.      * @return string 
  762.      */
  763.     public function getDescriptionEn()
  764.     {
  765.         return $this->description_en;
  766.     }
  767.     /**
  768.      * Set description_fr
  769.      *
  770.      * @param string $descriptionFr
  771.      * @return Pagina
  772.      */
  773.     public function setDescriptionFr($descriptionFr)
  774.     {
  775.         $this->description_fr $descriptionFr;
  776.         return $this;
  777.     }
  778.     /**
  779.      * Get description_fr
  780.      *
  781.      * @return string 
  782.      */
  783.     public function getDescriptionFr()
  784.     {
  785.         return $this->description_fr;
  786.     }
  787.     /**
  788.      * Set description_pt
  789.      *
  790.      * @param string $descriptionPt
  791.      * @return Pagina
  792.      */
  793.     public function setDescriptionPt($descriptionPt)
  794.     {
  795.         $this->description_pt $descriptionPt;
  796.         return $this;
  797.     }
  798.     /**
  799.      * Get description_pt
  800.      *
  801.      * @return string 
  802.      */
  803.     public function getDescriptionPt()
  804.     {
  805.         return $this->description_pt;
  806.     }
  807.     /**
  808.      * Set keywords_ca
  809.      *
  810.      * @param string $keywordsCa
  811.      * @return Pagina
  812.      */
  813.     public function setKeywordsCa($keywordsCa)
  814.     {
  815.         $this->keywords_ca $keywordsCa;
  816.         return $this;
  817.     }
  818.     /**
  819.      * Get keywords_ca
  820.      *
  821.      * @return string 
  822.      */
  823.     public function getKeywordsCa()
  824.     {
  825.         return $this->keywords_ca;
  826.     }
  827.     /**
  828.      * Set keywords_es
  829.      *
  830.      * @param string $keywordsEs
  831.      * @return Pagina
  832.      */
  833.     public function setKeywordsEs($keywordsEs)
  834.     {
  835.         $this->keywords_es $keywordsEs;
  836.         return $this;
  837.     }
  838.     /**
  839.      * Get keywords_es
  840.      *
  841.      * @return string 
  842.      */
  843.     public function getKeywordsEs()
  844.     {
  845.         return $this->keywords_es;
  846.     }
  847.     /**
  848.      * Set keywords_en
  849.      *
  850.      * @param string $keywordsEn
  851.      * @return Pagina
  852.      */
  853.     public function setKeywordsEn($keywordsEn)
  854.     {
  855.         $this->keywords_en $keywordsEn;
  856.         return $this;
  857.     }
  858.     /**
  859.      * Get keywords_en
  860.      *
  861.      * @return string 
  862.      */
  863.     public function getKeywordsEn()
  864.     {
  865.         return $this->keywords_en;
  866.     }
  867.     /**
  868.      * Set keywords_fr
  869.      *
  870.      * @param string $keywordsFr
  871.      * @return Pagina
  872.      */
  873.     public function setKeywordsFr($keywordsFr)
  874.     {
  875.         $this->keywords_fr $keywordsFr;
  876.         return $this;
  877.     }
  878.     /**
  879.      * Get keywords_fr
  880.      *
  881.      * @return string 
  882.      */
  883.     public function getKeywordsFr()
  884.     {
  885.         return $this->keywords_fr;
  886.     }
  887.     /**
  888.      * Set keywords_pt
  889.      *
  890.      * @param string $keywordsPt
  891.      * @return Pagina
  892.      */
  893.     public function setKeywordsPt($keywordsPt)
  894.     {
  895.         $this->keywords_pt $keywordsPt;
  896.         return $this;
  897.     }
  898.     /**
  899.      * Get keywords_pt
  900.      *
  901.      * @return string 
  902.      */
  903.     public function getKeywordsPt()
  904.     {
  905.         return $this->keywords_pt;
  906.     }
  907.     /**
  908.      * Add blocs
  909.      *
  910.      * @param \App\Entity\Bloc $blocs
  911.      * @return Pagina
  912.      */
  913.     public function addBloc(\App\Entity\Bloc $blocs)
  914.     {
  915.         $this->blocs[] = $blocs;
  916.         return $this;
  917.     }
  918.     /**
  919.      * Remove blocs
  920.      *
  921.      * @param \App\Entity\Bloc $blocs
  922.      */
  923.     public function removeBloc(\App\Entity\Bloc $blocs)
  924.     {
  925.         $this->blocs->removeElement($blocs);
  926.     }
  927.     /**
  928.      * Add menuOpcions
  929.      *
  930.      * @param \App\Entity\MenuOpcio $menuOpcions
  931.      * @return Pagina
  932.      */
  933.     public function addMenuOpcion(\App\Entity\MenuOpcio $menuOpcions)
  934.     {
  935.         $this->menuOpcions[] = $menuOpcions;
  936.         return $this;
  937.     }
  938.     /**
  939.      * Remove menuOpcions
  940.      *
  941.      * @param \App\Entity\MenuOpcio $menuOpcions
  942.      */
  943.     public function removeMenuOpcion(\App\Entity\MenuOpcio $menuOpcions)
  944.     {
  945.         $this->menuOpcions->removeElement($menuOpcions);
  946.     }
  947.     /**
  948.      * Set visibleMenu
  949.      *
  950.      * @param boolean $visibleMenu
  951.      * @return Pagina
  952.      */
  953.     public function setVisibleMenu($visibleMenu)
  954.     {
  955.         $this->visibleMenu $visibleMenu;
  956.         return $this;
  957.     }
  958.     /**
  959.      * Get visibleMenu
  960.      *
  961.      * @return boolean 
  962.      */
  963.     public function getVisibleMenu()
  964.     {
  965.         return $this->visibleMenu;
  966.     }
  967.     /**
  968.      * Set ordre
  969.      *
  970.      * @param integer $ordre
  971.      * @return Pagina
  972.      */
  973.     public function setOrdre($ordre)
  974.     {
  975.         $this->ordre $ordre;
  976.         return $this;
  977.     }
  978.     /**
  979.      * Get ordre
  980.      *
  981.      * @return integer 
  982.      */
  983.     public function getOrdre()
  984.     {
  985.         return $this->ordre;
  986.     }
  987.     /**
  988.      * Set galeries
  989.      *
  990.      * @param \App\Entity\Galeries $galeries
  991.      * @return Pagina
  992.      */
  993.     public function setGaleries(\App\Entity\Galeries $galeries null)
  994.     {
  995.         $this->galeries $galeries;
  996.         return $this;
  997.     }
  998.     /**
  999.      * Get galeries
  1000.      *
  1001.      * @return \App\Entity\Galeries 
  1002.      */
  1003.     public function getGaleries()
  1004.     {
  1005.         return $this->galeries;
  1006.     }
  1007. }