src/Entity/Cvs/LandingJobs.php line 25

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Cvs;
  3. use App\Entity\Core\Users;
  4. use App\Entity\Core\Agencies;
  5. use Doctrine\DBAL\Types\Types;
  6. use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
  7. use Symfony\Component\Validator\Constraints as Assert;
  8. use Doctrine\ORM\Mapping as ORM;
  9. use Vich\UploaderBundle\Mapping\Annotation as Vich;
  10. use Symfony\Component\HttpFoundation\File\File;
  11. use Symfony\Component\HttpFoundation\File\UploadedFile;
  12. use Vich\UploaderBundle\Entity\File as EmbeddedFile;
  13. use Vich\UploaderBundle\Templating\Helper\UploaderHelper;
  14. /**
  15.  * Landing Jobs
  16.  *
  17.  * @ORM\Table("cvs_landingjobs")
  18.  * @ORM\Entity(repositoryClass="App\Repository\Cvs\LandingJobsRepository")
  19.  * @ORM\HasLifecycleCallbacks()
  20.  * @Vich\Uploadable
  21.  */
  22. class LandingJobs
  23. {
  24.     /**
  25.      * @var integer
  26.      *
  27.      * @ORM\Column(name="id", type="integer")
  28.      * @ORM\Id
  29.      * @ORM\GeneratedValue(strategy="AUTO")
  30.      */
  31.     protected $id;
  32.     /**
  33.      * @var string
  34.      *
  35.      * @ORM\Column(name="created_at", type="datetime", nullable=true, options={"comment":"Date de création"})
  36.      */
  37.     private $createdAt;
  38.     /**
  39.      * @var string
  40.      *
  41.      * @ORM\Column(name="updated_at", type="datetime", nullable=true, options={"comment":"Date de mise à jour"})
  42.      */
  43.     private $updatedAt;
  44.     /**
  45.      * @var string
  46.      *
  47.      * @ORM\Column(name="title", type="string", length=255, nullable=true)
  48.      */
  49.     private $title;
  50.     /**
  51.      * @var string
  52.      *
  53.      * @ORM\Column(name="locale", type="string", length=255, nullable=true)
  54.      */
  55.     private $locale;
  56.     /**
  57.      * @var string
  58.      *
  59.      * @ORM\Column(name="title_page", type="string", length=255, nullable=true)
  60.      */
  61.     private $titlePage;
  62.     /**
  63.      * @var string
  64.      *
  65.      * @ORM\Column(name="description_page", type="text", nullable=true)
  66.      */
  67.     private $descriptionPage;
  68.     /**
  69.      * @var string
  70.      *
  71.      * @ORM\Column(name="description_page2", type="string", length=255, nullable=true)
  72.      */
  73.     private $descriptionPage2;
  74.     /**
  75.      * @var string
  76.      *
  77.      * @ORM\Column(name="description_page3", type="string", length=255, nullable=true)
  78.      */
  79.     private $descriptionPage3;
  80.     /**
  81.      * @var string
  82.      *
  83.      * @ORM\Column(name="short_title", type="string", length=255, nullable=true)
  84.      */
  85.     private $shortTitle;
  86.     /**
  87.      * @var string
  88.      *
  89.      * @ORM\Column(name="short_description", type="text", nullable=true)
  90.      */
  91.     private $shortDescription;
  92.     /**
  93.      * @var string
  94.      *
  95.      * @ORM\Column(name="slug", type="string", length=255, nullable=true)
  96.      */
  97.     private $slug;
  98.     /**
  99.      * @var string
  100.      *
  101.      * @ORM\Column(name="type", type="string", length=255, nullable=true)
  102.      */
  103.     private $type;
  104.     /**
  105.      * @var string
  106.      *
  107.      * @ORM\Column(name="title_work_1", type="string", length=255, nullable=true)
  108.      */
  109.     private $titleWork1;
  110.     /**
  111.      * @var string
  112.      *
  113.      * @ORM\Column(name="title_work_2", type="string", length=255, nullable=true)
  114.      */
  115.     private $titleWork2;
  116.     /**
  117.      * @var string
  118.      *
  119.      * @ORM\Column(name="title_work_3", type="string", length=255, nullable=true)
  120.      */
  121.     private $titleWork3;
  122.     /**
  123.      * @var string
  124.      *
  125.      * @ORM\Column(name="description_work_1", type="text", nullable=true)
  126.      */
  127.     private $descriptionWork1;
  128.     /**
  129.      * @var string
  130.      *
  131.      * @ORM\Column(name="description_work_2", type="text", nullable=true)
  132.      */
  133.     private $descriptionWork2;
  134.     /**
  135.      * @var string
  136.      *
  137.      * @ORM\Column(name="description_work_3", type="text", nullable=true)
  138.      */
  139.     private $descriptionWork3;
  140.     /**
  141.      * @var string
  142.      *
  143.      * @ORM\Column(name="title_presentation_1", type="string", length=255, nullable=true)
  144.      */
  145.     private $titlePresentation1;
  146.     /**
  147.      * @var string
  148.      *
  149.      * @ORM\Column(name="title_presentation_2", type="string", length=255, nullable=true)
  150.      */
  151.     private $titlePresentation2;
  152.     /**
  153.      * @var string
  154.      *
  155.      * @ORM\Column(name="title_presentation_3", type="string", length=255, nullable=true)
  156.      */
  157.     private $titlePresentation3;
  158.     /**
  159.      * @var string
  160.      *
  161.      * @ORM\Column(name="title_presentation_4", type="string", length=255, nullable=true)
  162.      */
  163.     private $titlePresentation4;
  164.     /**
  165.      * @var string
  166.      *
  167.      * @ORM\Column(name="description_presentation_1", type="text", nullable=true)
  168.      */
  169.     private $descriptionPresentation1;
  170.     /**
  171.      * @var string
  172.      *
  173.      * @ORM\Column(name="description_presentation_2", type="text", nullable=true)
  174.      */
  175.     private $descriptionPresentation2;
  176.     /**
  177.      * @var string
  178.      *
  179.      * @ORM\Column(name="description_presentation_3", type="text", nullable=true)
  180.      */
  181.     private $descriptionPresentation3;
  182.     /**
  183.      * @var string
  184.      *
  185.      * @ORM\Column(name="description_presentation_4", type="text", nullable=true)
  186.      */
  187.     private $descriptionPresentation4;
  188.     /**
  189.      * @var string
  190.      *
  191.      * @ORM\Column(name="citation_presentation_1", type="text", nullable=true)
  192.      */
  193.     private $citationPresentation1;
  194.     /**
  195.      * @var string
  196.      *
  197.      * @ORM\Column(name="citation_presentation_2", type="text", nullable=true)
  198.      */
  199.     private $citationPresentation2;
  200.     /**
  201.      * @var string
  202.      *
  203.      * @ORM\Column(name="citation_presentation_3", type="text", nullable=true)
  204.      */
  205.     private $citationPresentation3;
  206.     /**
  207.      * @var string
  208.      *
  209.      * @ORM\Column(name="citation_presentation_4", type="text", nullable=true)
  210.      */
  211.     private $citationPresentation4;
  212.     // ============================================================
  213.     // Nouveaux champs pour le rendu façon homepage
  214.     // ============================================================
  215.     /**
  216.      * Petit label affiché au-dessus du titre des features ("01.", "Filtrage", etc.).
  217.      *
  218.      * @var string
  219.      * @ORM\Column(name="label_presentation_1", type="string", length=255, nullable=true)
  220.      */
  221.     private $labelPresentation1;
  222.     /**
  223.      * @var string
  224.      * @ORM\Column(name="label_presentation_2", type="string", length=255, nullable=true)
  225.      */
  226.     private $labelPresentation2;
  227.     /**
  228.      * @var string
  229.      * @ORM\Column(name="label_presentation_3", type="string", length=255, nullable=true)
  230.      */
  231.     private $labelPresentation3;
  232.     /**
  233.      * @var string
  234.      * @ORM\Column(name="label_presentation_4", type="string", length=255, nullable=true)
  235.      */
  236.     private $labelPresentation4;
  237.     /**
  238.      * Auteur affiché sous la citation de la feature 1.
  239.      *
  240.      * @var string
  241.      * @ORM\Column(name="author_presentation_1", type="string", length=255, nullable=true)
  242.      */
  243.     private $authorPresentation1;
  244.     /**
  245.      * @var string
  246.      * @ORM\Column(name="author_presentation_2", type="string", length=255, nullable=true)
  247.      */
  248.     private $authorPresentation2;
  249.     /**
  250.      * @var string
  251.      * @ORM\Column(name="author_presentation_3", type="string", length=255, nullable=true)
  252.      */
  253.     private $authorPresentation3;
  254.     /**
  255.      * @var string
  256.      * @ORM\Column(name="author_presentation_4", type="string", length=255, nullable=true)
  257.      */
  258.     private $authorPresentation4;
  259.     /**
  260.      * Rôle / fonction de l'auteur affiché sous la citation.
  261.      *
  262.      * @var string
  263.      * @ORM\Column(name="role_presentation_1", type="string", length=255, nullable=true)
  264.      */
  265.     private $rolePresentation1;
  266.     /**
  267.      * @var string
  268.      * @ORM\Column(name="role_presentation_2", type="string", length=255, nullable=true)
  269.      */
  270.     private $rolePresentation2;
  271.     /**
  272.      * @var string
  273.      * @ORM\Column(name="role_presentation_3", type="string", length=255, nullable=true)
  274.      */
  275.     private $rolePresentation3;
  276.     /**
  277.      * @var string
  278.      * @ORM\Column(name="role_presentation_4", type="string", length=255, nullable=true)
  279.      */
  280.     private $rolePresentation4;
  281.     // ============================================================
  282.     // Visibilité / mise en avant
  283.     // ============================================================
  284.     /**
  285.      * Mise en avant de la landing page (footer + autres emplacements).
  286.      *
  287.      * @var bool
  288.      *
  289.      * @ORM\Column(name="featured", type="boolean", nullable=true, options={"default":false})
  290.      */
  291.     private $featured false;
  292.     /**
  293.      * Position pour l'ordre d'affichage quand featured (plus petit = en premier).
  294.      *
  295.      * @var int
  296.      *
  297.      * @ORM\Column(name="position", type="integer", nullable=true, options={"default":0})
  298.      */
  299.     private $position 0;
  300.     /**
  301.      * Activé / désactivé.
  302.      *
  303.      * @var bool
  304.      *
  305.      * @ORM\Column(name="online", type="boolean", nullable=true, options={"default":true})
  306.      */
  307.     private $online true;
  308.     public function __construct()
  309.     {
  310.     }
  311.     /**
  312.      * @ORM\PrePersist
  313.      */
  314.     public function setCreatedAtValue(): void
  315.     {
  316.         $this->setCreatedAt(new \DateTime("now"));
  317.         $this->setUpdatedAt(new \DateTime("now"));
  318.     }
  319.     /**
  320.      * @ORM\PreUpdate
  321.      */
  322.     public function setUpdatedAtValue(): void
  323.     {
  324.         $this->setUpdatedAt(new \DateTime("now"));
  325.     }
  326.     public function __toString()
  327.     {
  328.         return (string)$this->id;
  329.     }
  330.     public function getId(): ?int
  331.     {
  332.         return $this->id;
  333.     }
  334.     public function getCreatedAt(): ?\DateTimeInterface
  335.     {
  336.         return $this->createdAt;
  337.     }
  338.     public function setCreatedAt(?\DateTimeInterface $createdAt): static
  339.     {
  340.         $this->createdAt $createdAt;
  341.         return $this;
  342.     }
  343.     public function getUpdatedAt(): ?\DateTimeInterface
  344.     {
  345.         return $this->updatedAt;
  346.     }
  347.     public function setUpdatedAt(?\DateTimeInterface $updatedAt): static
  348.     {
  349.         $this->updatedAt $updatedAt;
  350.         return $this;
  351.     }
  352.     public function getTitle(): ?string { return $this->title; }
  353.     public function setTitle(?string $title): static { $this->title $title; return $this; }
  354.     public function getTitlePage(): ?string { return $this->titlePage; }
  355.     public function setTitlePage(?string $titlePage): static { $this->titlePage $titlePage; return $this; }
  356.     public function getDescriptionPage(): ?string { return $this->descriptionPage; }
  357.     public function setDescriptionPage(?string $descriptionPage): static { $this->descriptionPage $descriptionPage; return $this; }
  358.     public function getDescriptionPage2(): ?string { return $this->descriptionPage2; }
  359.     public function setDescriptionPage2(?string $descriptionPage2): static { $this->descriptionPage2 $descriptionPage2; return $this; }
  360.     public function getDescriptionPage3(): ?string { return $this->descriptionPage3; }
  361.     public function setDescriptionPage3(?string $descriptionPage3): static { $this->descriptionPage3 $descriptionPage3; return $this; }
  362.     public function getShortTitle(): ?string { return $this->shortTitle; }
  363.     public function setShortTitle(?string $shortTitle): static { $this->shortTitle $shortTitle; return $this; }
  364.     public function getShortDescription(): ?string { return $this->shortDescription; }
  365.     public function setShortDescription(?string $shortDescription): static { $this->shortDescription $shortDescription; return $this; }
  366.     public function getSlug(): ?string { return $this->slug; }
  367.     public function setSlug(?string $slug): static { $this->slug $slug; return $this; }
  368.     public function getType(): ?string { return $this->type; }
  369.     public function setType(?string $type): static { $this->type $type; return $this; }
  370.     // === Work ===
  371.     public function getTitleWork1(): ?string { return $this->titleWork1; }
  372.     public function setTitleWork1(?string $v): static { $this->titleWork1 $v; return $this; }
  373.     public function getTitleWork2(): ?string { return $this->titleWork2; }
  374.     public function setTitleWork2(?string $v): static { $this->titleWork2 $v; return $this; }
  375.     public function getTitleWork3(): ?string { return $this->titleWork3; }
  376.     public function setTitleWork3(?string $v): static { $this->titleWork3 $v; return $this; }
  377.     public function getDescriptionWork1(): ?string { return $this->descriptionWork1; }
  378.     public function setDescriptionWork1(?string $v): static { $this->descriptionWork1 $v; return $this; }
  379.     public function getDescriptionWork2(): ?string { return $this->descriptionWork2; }
  380.     public function setDescriptionWork2(?string $v): static { $this->descriptionWork2 $v; return $this; }
  381.     public function getDescriptionWork3(): ?string { return $this->descriptionWork3; }
  382.     public function setDescriptionWork3(?string $v): static { $this->descriptionWork3 $v; return $this; }
  383.     // === Presentation - title ===
  384.     public function getTitlePresentation1(): ?string { return $this->titlePresentation1; }
  385.     public function setTitlePresentation1(?string $v): static { $this->titlePresentation1 $v; return $this; }
  386.     public function getTitlePresentation2(): ?string { return $this->titlePresentation2; }
  387.     public function setTitlePresentation2(?string $v): static { $this->titlePresentation2 $v; return $this; }
  388.     public function getTitlePresentation3(): ?string { return $this->titlePresentation3; }
  389.     public function setTitlePresentation3(?string $v): static { $this->titlePresentation3 $v; return $this; }
  390.     public function getTitlePresentation4(): ?string { return $this->titlePresentation4; }
  391.     public function setTitlePresentation4(?string $v): static { $this->titlePresentation4 $v; return $this; }
  392.     // === Presentation - description ===
  393.     public function getDescriptionPresentation1(): ?string { return $this->descriptionPresentation1; }
  394.     public function setDescriptionPresentation1(?string $v): static { $this->descriptionPresentation1 $v; return $this; }
  395.     public function getDescriptionPresentation2(): ?string { return $this->descriptionPresentation2; }
  396.     public function setDescriptionPresentation2(?string $v): static { $this->descriptionPresentation2 $v; return $this; }
  397.     public function getDescriptionPresentation3(): ?string { return $this->descriptionPresentation3; }
  398.     public function setDescriptionPresentation3(?string $v): static { $this->descriptionPresentation3 $v; return $this; }
  399.     public function getDescriptionPresentation4(): ?string { return $this->descriptionPresentation4; }
  400.     public function setDescriptionPresentation4(?string $v): static { $this->descriptionPresentation4 $v; return $this; }
  401.     // === Presentation - citation ===
  402.     public function getCitationPresentation1(): ?string { return $this->citationPresentation1; }
  403.     public function setCitationPresentation1(?string $v): static { $this->citationPresentation1 $v; return $this; }
  404.     public function getCitationPresentation2(): ?string { return $this->citationPresentation2; }
  405.     public function setCitationPresentation2(?string $v): static { $this->citationPresentation2 $v; return $this; }
  406.     public function getCitationPresentation3(): ?string { return $this->citationPresentation3; }
  407.     public function setCitationPresentation3(?string $v): static { $this->citationPresentation3 $v; return $this; }
  408.     public function getCitationPresentation4(): ?string { return $this->citationPresentation4; }
  409.     public function setCitationPresentation4(?string $v): static { $this->citationPresentation4 $v; return $this; }
  410.     // === Presentation - label (NEW) ===
  411.     public function getLabelPresentation1(): ?string { return $this->labelPresentation1; }
  412.     public function setLabelPresentation1(?string $v): static { $this->labelPresentation1 $v; return $this; }
  413.     public function getLabelPresentation2(): ?string { return $this->labelPresentation2; }
  414.     public function setLabelPresentation2(?string $v): static { $this->labelPresentation2 $v; return $this; }
  415.     public function getLabelPresentation3(): ?string { return $this->labelPresentation3; }
  416.     public function setLabelPresentation3(?string $v): static { $this->labelPresentation3 $v; return $this; }
  417.     public function getLabelPresentation4(): ?string { return $this->labelPresentation4; }
  418.     public function setLabelPresentation4(?string $v): static { $this->labelPresentation4 $v; return $this; }
  419.     // === Presentation - author (NEW) ===
  420.     public function getAuthorPresentation1(): ?string { return $this->authorPresentation1; }
  421.     public function setAuthorPresentation1(?string $v): static { $this->authorPresentation1 $v; return $this; }
  422.     public function getAuthorPresentation2(): ?string { return $this->authorPresentation2; }
  423.     public function setAuthorPresentation2(?string $v): static { $this->authorPresentation2 $v; return $this; }
  424.     public function getAuthorPresentation3(): ?string { return $this->authorPresentation3; }
  425.     public function setAuthorPresentation3(?string $v): static { $this->authorPresentation3 $v; return $this; }
  426.     public function getAuthorPresentation4(): ?string { return $this->authorPresentation4; }
  427.     public function setAuthorPresentation4(?string $v): static { $this->authorPresentation4 $v; return $this; }
  428.     // === Presentation - role (NEW) ===
  429.     public function getRolePresentation1(): ?string { return $this->rolePresentation1; }
  430.     public function setRolePresentation1(?string $v): static { $this->rolePresentation1 $v; return $this; }
  431.     public function getRolePresentation2(): ?string { return $this->rolePresentation2; }
  432.     public function setRolePresentation2(?string $v): static { $this->rolePresentation2 $v; return $this; }
  433.     public function getRolePresentation3(): ?string { return $this->rolePresentation3; }
  434.     public function setRolePresentation3(?string $v): static { $this->rolePresentation3 $v; return $this; }
  435.     public function getRolePresentation4(): ?string { return $this->rolePresentation4; }
  436.     public function setRolePresentation4(?string $v): static { $this->rolePresentation4 $v; return $this; }
  437.     // === Locale & visibilité ===
  438.     public function getLocale(): ?string { return $this->locale; }
  439.     public function setLocale(?string $locale): static { $this->locale $locale; return $this; }
  440.     public function isFeatured(): ?bool { return $this->featured; }
  441.     public function getFeatured(): ?bool { return $this->featured; }
  442.     public function setFeatured(?bool $featured): static { $this->featured $featured; return $this; }
  443.     public function getPosition(): ?int { return $this->position; }
  444.     public function setPosition(?int $position): static { $this->position $position; return $this; }
  445.     public function isOnline(): ?bool { return $this->online; }
  446.     public function getOnline(): ?bool { return $this->online; }
  447.     public function setOnline(?bool $online): static { $this->online $online; return $this; }
  448. }