src/Entity/PagesBlocs.php line 10

Open in your IDE?
  1. <?php
  2. namespace Acme\SudcmsBundle\Entity;
  3. use Acme\SudcmsBundle\Repository\PagesBlocsRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Table(name'pages_blocs')]
  6. #[ORM\Entity(repositoryClassPagesBlocsRepository::class)]
  7. class PagesBlocs
  8. {
  9.     /**
  10.      * @var int
  11.      */
  12.     #[ORM\Column(name'bloc_id'type'integer'nullablefalse)]
  13.     #[ORM\Id]
  14.     #[ORM\GeneratedValue(strategy'IDENTITY')]
  15.     private $blocId;
  16.     /**
  17.      * @var int
  18.      */
  19.     #[ORM\Column(name'id_page'type'integer'nullablefalse)]
  20.     private $idPage;
  21.     /**
  22.      * @var string
  23.      */
  24.     #[ORM\Column(name'bloc_type'type'string'length0nullablefalsecolumnDefinition"enum('texte','image','texte_image','galerie','embed','html','document','sous_menu','texte_slider','chiffres_cles','carte','formulaire')")]
  25.     private $blocType;
  26.     /**
  27.      * @var int
  28.      */
  29.     #[ORM\Column(name'bloc_multi_column'type'integer'nullabletrueoptions: ['default' => 0])]
  30.     private $blocMultiColumn;
  31.     /**
  32.      * @var int
  33.      */
  34.     #[ORM\Column(name'bloc_type_texte_image'type'integer'nullabletrueoptions: ['default' => 0])]
  35.     private $blocTypeTexteImage '0';
  36.     /**
  37.      * @var string|null
  38.      */
  39.     #[ORM\Column(name'bloc_titre'type'string'length300nullabletrueoptions: ['default' => null])]
  40.     private $blocTitre NULL;
  41.     /**
  42.      * @var string|null
  43.      */
  44.     #[ORM\Column(name'bloc_sstitre'type'string'length300nullabletrueoptions: ['default' => null])]
  45.     private $blocSstitre NULL;
  46.     /**
  47.      * @var string|null
  48.      */
  49.     #[ORM\Column(name'bloc_texte'type'text'length65535nullabletrueoptions: ['default' => null])]
  50.     private $blocTexte NULL;
  51.     /**
  52.      * @var string|null
  53.      */
  54.     #[ORM\Column(name'bloc_embed'type'text'length65535nullabletrueoptions: ['default' => null])]
  55.     private $blocEmbed NULL;
  56.     /**
  57.      * @var string|null
  58.      */
  59.     #[ORM\Column(name'bloc_htmlfile'type'string'length250nullabletrueoptions: ['default' => null])]
  60.     private $blocHtmlfile NULL;
  61.     /**
  62.      * @var string|null
  63.      */
  64.     #[ORM\Column(name'bloc_alignement'type'string'length0nullabletrueoptions: ['default' => 'gauche'])]
  65.     private $blocAlignement 'gauche';
  66.     /**
  67.      * @var int|null
  68.      */
  69.     #[ORM\Column(name'bloc_ordre'type'integer'nullabletrueoptions: ['default' => null])]
  70.     private $blocOrdre NULL;
  71.     /**
  72.      * @var bool
  73.      */
  74.     #[ORM\Column(name'bloc_en_ligne'type'boolean'nullablefalse)]
  75.     private $blocEnLigne '0';
  76.     #[ORM\Column(type'string'length10nullabletrue)]
  77.     private $bloc_chiffre1;
  78.     #[ORM\Column(type'string'length10nullabletrue)]
  79.     private $bloc_symbole1;
  80.     #[ORM\Column(type'string'length255nullabletrue)]
  81.     private $bloc_texte_chiffre1;
  82.     #[ORM\Column(type'string'length10nullabletrue)]
  83.     private $bloc_chiffre2;
  84.     #[ORM\Column(type'string'length10nullabletrue)]
  85.     private $bloc_symbole2;
  86.     #[ORM\Column(type'string'length255nullabletrue)]
  87.     private $bloc_texte_chiffre2;
  88.     #[ORM\Column(type'string'length10nullabletrue)]
  89.     private $bloc_chiffre3;
  90.     #[ORM\Column(type'string'length10nullabletrue)]
  91.     private $bloc_symbole3;
  92.     #[ORM\Column(type'string'length255nullabletrue)]
  93.     private $bloc_texte_chiffre3;
  94.     #[ORM\Column(type'string'length10nullabletrue)]
  95.     private $bloc_chiffre4;
  96.     #[ORM\Column(type'string'length10nullabletrue)]
  97.     private $bloc_symbole4;
  98.     #[ORM\Column(type'string'length255nullabletrue)]
  99.     private $bloc_texte_chiffre4;
  100.     #[ORM\Column(type'string'length50nullabletrue)]
  101.     private $blocMarginTop;
  102.     #[ORM\Column(type'string'length50nullabletrue)]
  103.     private $blocMarginBottom;
  104.     #[ORM\Column(type'string'length255nullabletruecolumnDefinition"enum('top','middle','bottom')")]
  105.     private $bloc_image_position_verticale;
  106.     #[ORM\Column(type'string'length255nullabletruecolumnDefinition"enum('left','middle','right')")]
  107.     private $bloc_image_position_horizontale;
  108.     #[ORM\Column(type'integer'nullabletrue)]
  109.     private $bloc_formulaire_id;
  110.     #[ORM\Column(type'string'length6nullabletrue)]
  111.     private $blocBgColor;
  112.     #[ORM\Column(type'string'length100nullabletruecolumnDefinition"enum('page','news','catalog','agenda', 'product)")]
  113.     private $elementType;
  114.     public function getBlocId(): ?int
  115.     {
  116.         return $this->blocId;
  117.     }
  118.     public function getIdPage(): ?int
  119.     {
  120.         return $this->idPage;
  121.     }
  122.     public function setIdPage(int $idPage): self
  123.     {
  124.         $this->idPage $idPage;
  125.         return $this;
  126.     }
  127.     public function getBlocType(): ?string
  128.     {
  129.         return $this->blocType;
  130.     }
  131.     public function setBlocType(string $blocType): self
  132.     {
  133.         $this->blocType $blocType;
  134.         return $this;
  135.     }
  136.     public function getBlocTypeTexteImage(): ?int
  137.     {
  138.         return $this->blocTypeTexteImage;
  139.     }
  140.     public function setBlocTypeTexteImage(?int $blocTypeTexteImage): self
  141.     {
  142.         $this->blocTypeTexteImage $blocTypeTexteImage;
  143.         return $this;
  144.     }
  145.     public function getBlocMultiColumn(): ?int
  146.     {
  147.         return $this->blocMultiColumn;
  148.     }
  149.     public function setBlocMultiColumn(?int $blocMultiColumn): self
  150.     {
  151.         $this->blocMultiColumn $blocMultiColumn;
  152.         return $this;
  153.     }
  154.     public function getBlocTitre(): ?string
  155.     {
  156.         return $this->blocTitre;
  157.     }
  158.     public function setBlocTitre(?string $blocTitre): self
  159.     {
  160.         $this->blocTitre $blocTitre;
  161.         return $this;
  162.     }
  163.     public function getBlocSstitre(): ?string
  164.     {
  165.         return $this->blocSstitre;
  166.     }
  167.     public function setBlocSstitre(?string $blocSstitre): self
  168.     {
  169.         $this->blocSstitre $blocSstitre;
  170.         return $this;
  171.     }
  172.     public function getBlocTexte(): ?string
  173.     {
  174.         return $this->blocTexte;
  175.     }
  176.     public function setBlocTexte(?string $blocTexte): self
  177.     {
  178.         $this->blocTexte $blocTexte;
  179.         return $this;
  180.     }
  181.     public function getBlocEmbed(): ?string
  182.     {
  183.         return $this->blocEmbed;
  184.     }
  185.     public function setBlocEmbed(?string $blocEmbed): self
  186.     {
  187.         $this->blocEmbed $blocEmbed;
  188.         return $this;
  189.     }
  190.     public function getBlocHtmlfile(): ?string
  191.     {
  192.         return $this->blocHtmlfile;
  193.     }
  194.     public function setBlocHtmlfile(?string $blocHtmlfile): self
  195.     {
  196.         $this->blocHtmlfile $blocHtmlfile;
  197.         return $this;
  198.     }
  199.     public function getBlocAlignement(): ?string
  200.     {
  201.         return $this->blocAlignement;
  202.     }
  203.     public function setBlocAlignement(?string $blocAlignement): self
  204.     {
  205.         $this->blocAlignement $blocAlignement;
  206.         return $this;
  207.     }
  208.     public function getBlocOrdre(): ?int
  209.     {
  210.         return $this->blocOrdre;
  211.     }
  212.     public function setBlocOrdre(?int $blocOrdre): self
  213.     {
  214.         $this->blocOrdre $blocOrdre;
  215.         return $this;
  216.     }
  217.     public function getBlocEnLigne(): ?bool
  218.     {
  219.         return $this->blocEnLigne;
  220.     }
  221.     public function setBlocEnLigne(bool $blocEnLigne): self
  222.     {
  223.         $this->blocEnLigne $blocEnLigne;
  224.         return $this;
  225.     }
  226.     public function getBlocChiffre1(): ?string
  227.     {
  228.         return $this->bloc_chiffre1;
  229.     }
  230.     public function setBlocChiffre1(?string $bloc_chiffre1): self
  231.     {
  232.         $this->bloc_chiffre1 $bloc_chiffre1;
  233.         return $this;
  234.     }
  235.     public function getBlocSymbole1(): ?string
  236.     {
  237.         return $this->bloc_symbole1;
  238.     }
  239.     public function setBlocSymbole1(?string $bloc_symbole1): self
  240.     {
  241.         $this->bloc_symbole1 $bloc_symbole1;
  242.         return $this;
  243.     }
  244.     public function getBlocTexteChiffre1(): ?string
  245.     {
  246.         return $this->bloc_texte_chiffre1;
  247.     }
  248.     public function setBlocTexteChiffre1(?string $bloc_texte_chiffre1): self
  249.     {
  250.         $this->bloc_texte_chiffre1 $bloc_texte_chiffre1;
  251.         return $this;
  252.     }
  253.     public function getBlocChiffre2(): ?string
  254.     {
  255.         return $this->bloc_chiffre2;
  256.     }
  257.     public function setBlocChiffre2(?string $bloc_chiffre2): self
  258.     {
  259.         $this->bloc_chiffre2 $bloc_chiffre2;
  260.         return $this;
  261.     }
  262.     public function getBlocSymbole2(): ?string
  263.     {
  264.         return $this->bloc_symbole2;
  265.     }
  266.     public function setBlocSymbole2(?string $bloc_symbole2): self
  267.     {
  268.         $this->bloc_symbole2 $bloc_symbole2;
  269.         return $this;
  270.     }
  271.     public function getBlocTexteChiffre2(): ?string
  272.     {
  273.         return $this->bloc_texte_chiffre2;
  274.     }
  275.     public function setBlocTexteChiffre2(?string $bloc_texte_chiffre2): self
  276.     {
  277.         $this->bloc_texte_chiffre2 $bloc_texte_chiffre2;
  278.         return $this;
  279.     }
  280.     public function getBlocChiffre3(): ?string
  281.     {
  282.         return $this->bloc_chiffre3;
  283.     }
  284.     public function setBlocChiffre3(?string $bloc_chiffre3): self
  285.     {
  286.         $this->bloc_chiffre3 $bloc_chiffre3;
  287.         return $this;
  288.     }
  289.     public function getBlocSymbole3(): ?string
  290.     {
  291.         return $this->bloc_symbole3;
  292.     }
  293.     public function setBlocSymbole3(?string $bloc_symbole3): self
  294.     {
  295.         $this->bloc_symbole3 $bloc_symbole3;
  296.         return $this;
  297.     }
  298.     public function getBlocTexteChiffre3(): ?string
  299.     {
  300.         return $this->bloc_texte_chiffre3;
  301.     }
  302.     public function setBlocTexteChiffre3(?string $bloc_texte_chiffre3): self
  303.     {
  304.         $this->bloc_texte_chiffre3 $bloc_texte_chiffre3;
  305.         return $this;
  306.     }
  307.     public function getBlocChiffre4(): ?string
  308.     {
  309.         return $this->bloc_chiffre4;
  310.     }
  311.     public function setBlocChiffre4(?string $bloc_chiffre4): self
  312.     {
  313.         $this->bloc_chiffre4 $bloc_chiffre4;
  314.         return $this;
  315.     }
  316.     public function getBlocSymbole4(): ?string
  317.     {
  318.         return $this->bloc_symbole4;
  319.     }
  320.     public function setBlocSymbole4(?string $bloc_symbole4): self
  321.     {
  322.         $this->bloc_symbole4 $bloc_symbole4;
  323.         return $this;
  324.     }
  325.     public function getBlocTexteChiffre4(): ?string
  326.     {
  327.         return $this->bloc_texte_chiffre4;
  328.     }
  329.     public function setBlocTexteChiffre4(?string $bloc_texte_chiffre4): self
  330.     {
  331.         $this->bloc_texte_chiffre4 $bloc_texte_chiffre4;
  332.         return $this;
  333.     }
  334.     public function getBlocMarginTop(): ?string
  335.     {
  336.         return $this->blocMarginTop;
  337.     }
  338.     public function setBlocMarginTop(?string $blocMarginTop): self
  339.     {
  340.         $this->blocMarginTop $blocMarginTop;
  341.         return $this;
  342.     }
  343.     public function getBlocMarginBottom(): ?string
  344.     {
  345.         return $this->blocMarginBottom;
  346.     }
  347.     public function setBlocMarginBottom(?string $blocMarginBottom): self
  348.     {
  349.         $this->blocMarginBottom $blocMarginBottom;
  350.         return $this;
  351.     }
  352.     public function getBlocImagePositionVerticale(): ?string
  353.     {
  354.         return $this->bloc_image_position_verticale;
  355.     }
  356.     public function setBlocImagePositionVerticale(?string $bloc_image_position_verticale): self
  357.     {
  358.         $this->bloc_image_position_verticale $bloc_image_position_verticale;
  359.         return $this;
  360.     }
  361.     public function getBlocImagePositionHorizontale(): ?string
  362.     {
  363.         return $this->bloc_image_position_horizontale;
  364.     }
  365.     public function setBlocImagePositionHorizontale(?string $bloc_image_position_horizontale): self
  366.     {
  367.         $this->bloc_image_position_horizontale $bloc_image_position_horizontale;
  368.         return $this;
  369.     }
  370.     public function getBlocFormulaireId(): ?int
  371.     {
  372.         return $this->bloc_formulaire_id;
  373.     }
  374.     public function setBlocFormulaireId(?int $bloc_formulaire_id): self
  375.     {
  376.         $this->bloc_formulaire_id $bloc_formulaire_id;
  377.         return $this;
  378.     }
  379.     public function getBlocBgColor(): ?string
  380.     {
  381.         return $this->blocBgColor;
  382.     }
  383.     public function setBlocBgColor(?string $blocBgColor): self
  384.     {
  385.         $this->blocBgColor $blocBgColor;
  386.         return $this;
  387.     }
  388.     public function getElementType(): ?string
  389.     {
  390.         return $this->elementType;
  391.     }
  392.     public function setElementType(?string $elementType): self
  393.     {
  394.         $this->elementType $elementType;
  395.         return $this;
  396.     }
  397. }