<?phpnamespace App\Entity\Cvs;use App\Entity\Core\Users;use App\Entity\Core\Agencies;use Doctrine\DBAL\Types\Types;use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;use Symfony\Component\Validator\Constraints as Assert;use Doctrine\ORM\Mapping as ORM;use Vich\UploaderBundle\Mapping\Annotation as Vich;use Symfony\Component\HttpFoundation\File\File;use Symfony\Component\HttpFoundation\File\UploadedFile;use Vich\UploaderBundle\Entity\File as EmbeddedFile;use Vich\UploaderBundle\Templating\Helper\UploaderHelper;/** * Landing Jobs * * @ORM\Table("cvs_landingjobs") * @ORM\Entity(repositoryClass="App\Repository\Cvs\LandingJobsRepository") * @ORM\HasLifecycleCallbacks() * @Vich\Uploadable */class LandingJobs{ /** * @var integer * * @ORM\Column(name="id", type="integer") * @ORM\Id * @ORM\GeneratedValue(strategy="AUTO") */ protected $id; /** * @var string * * @ORM\Column(name="created_at", type="datetime", nullable=true, options={"comment":"Date de création"}) */ private $createdAt; /** * @var string * * @ORM\Column(name="updated_at", type="datetime", nullable=true, options={"comment":"Date de mise à jour"}) */ private $updatedAt; /** * @var string * * @ORM\Column(name="title", type="string", length=255, nullable=true) */ private $title; /** * @var string * * @ORM\Column(name="locale", type="string", length=255, nullable=true) */ private $locale; /** * @var string * * @ORM\Column(name="title_page", type="string", length=255, nullable=true) */ private $titlePage; /** * @var string * * @ORM\Column(name="description_page", type="text", nullable=true) */ private $descriptionPage; /** * @var string * * @ORM\Column(name="description_page2", type="string", length=255, nullable=true) */ private $descriptionPage2; /** * @var string * * @ORM\Column(name="description_page3", type="string", length=255, nullable=true) */ private $descriptionPage3; /** * @var string * * @ORM\Column(name="short_title", type="string", length=255, nullable=true) */ private $shortTitle; /** * @var string * * @ORM\Column(name="short_description", type="text", nullable=true) */ private $shortDescription; /** * @var string * * @ORM\Column(name="slug", type="string", length=255, nullable=true) */ private $slug; /** * @var string * * @ORM\Column(name="type", type="string", length=255, nullable=true) */ private $type; /** * @var string * * @ORM\Column(name="title_work_1", type="string", length=255, nullable=true) */ private $titleWork1; /** * @var string * * @ORM\Column(name="title_work_2", type="string", length=255, nullable=true) */ private $titleWork2; /** * @var string * * @ORM\Column(name="title_work_3", type="string", length=255, nullable=true) */ private $titleWork3; /** * @var string * * @ORM\Column(name="description_work_1", type="text", nullable=true) */ private $descriptionWork1; /** * @var string * * @ORM\Column(name="description_work_2", type="text", nullable=true) */ private $descriptionWork2; /** * @var string * * @ORM\Column(name="description_work_3", type="text", nullable=true) */ private $descriptionWork3; /** * @var string * * @ORM\Column(name="title_presentation_1", type="string", length=255, nullable=true) */ private $titlePresentation1; /** * @var string * * @ORM\Column(name="title_presentation_2", type="string", length=255, nullable=true) */ private $titlePresentation2; /** * @var string * * @ORM\Column(name="title_presentation_3", type="string", length=255, nullable=true) */ private $titlePresentation3; /** * @var string * * @ORM\Column(name="title_presentation_4", type="string", length=255, nullable=true) */ private $titlePresentation4; /** * @var string * * @ORM\Column(name="description_presentation_1", type="text", nullable=true) */ private $descriptionPresentation1; /** * @var string * * @ORM\Column(name="description_presentation_2", type="text", nullable=true) */ private $descriptionPresentation2; /** * @var string * * @ORM\Column(name="description_presentation_3", type="text", nullable=true) */ private $descriptionPresentation3; /** * @var string * * @ORM\Column(name="description_presentation_4", type="text", nullable=true) */ private $descriptionPresentation4; /** * @var string * * @ORM\Column(name="citation_presentation_1", type="text", nullable=true) */ private $citationPresentation1; /** * @var string * * @ORM\Column(name="citation_presentation_2", type="text", nullable=true) */ private $citationPresentation2; /** * @var string * * @ORM\Column(name="citation_presentation_3", type="text", nullable=true) */ private $citationPresentation3; /** * @var string * * @ORM\Column(name="citation_presentation_4", type="text", nullable=true) */ private $citationPresentation4; // ============================================================ // Nouveaux champs pour le rendu façon homepage // ============================================================ /** * Petit label affiché au-dessus du titre des features ("01.", "Filtrage", etc.). * * @var string * @ORM\Column(name="label_presentation_1", type="string", length=255, nullable=true) */ private $labelPresentation1; /** * @var string * @ORM\Column(name="label_presentation_2", type="string", length=255, nullable=true) */ private $labelPresentation2; /** * @var string * @ORM\Column(name="label_presentation_3", type="string", length=255, nullable=true) */ private $labelPresentation3; /** * @var string * @ORM\Column(name="label_presentation_4", type="string", length=255, nullable=true) */ private $labelPresentation4; /** * Auteur affiché sous la citation de la feature 1. * * @var string * @ORM\Column(name="author_presentation_1", type="string", length=255, nullable=true) */ private $authorPresentation1; /** * @var string * @ORM\Column(name="author_presentation_2", type="string", length=255, nullable=true) */ private $authorPresentation2; /** * @var string * @ORM\Column(name="author_presentation_3", type="string", length=255, nullable=true) */ private $authorPresentation3; /** * @var string * @ORM\Column(name="author_presentation_4", type="string", length=255, nullable=true) */ private $authorPresentation4; /** * Rôle / fonction de l'auteur affiché sous la citation. * * @var string * @ORM\Column(name="role_presentation_1", type="string", length=255, nullable=true) */ private $rolePresentation1; /** * @var string * @ORM\Column(name="role_presentation_2", type="string", length=255, nullable=true) */ private $rolePresentation2; /** * @var string * @ORM\Column(name="role_presentation_3", type="string", length=255, nullable=true) */ private $rolePresentation3; /** * @var string * @ORM\Column(name="role_presentation_4", type="string", length=255, nullable=true) */ private $rolePresentation4; // ============================================================ // Visibilité / mise en avant // ============================================================ /** * Mise en avant de la landing page (footer + autres emplacements). * * @var bool * * @ORM\Column(name="featured", type="boolean", nullable=true, options={"default":false}) */ private $featured = false; /** * Position pour l'ordre d'affichage quand featured (plus petit = en premier). * * @var int * * @ORM\Column(name="position", type="integer", nullable=true, options={"default":0}) */ private $position = 0; /** * Activé / désactivé. * * @var bool * * @ORM\Column(name="online", type="boolean", nullable=true, options={"default":true}) */ private $online = true; public function __construct() { } /** * @ORM\PrePersist */ public function setCreatedAtValue(): void { $this->setCreatedAt(new \DateTime("now")); $this->setUpdatedAt(new \DateTime("now")); } /** * @ORM\PreUpdate */ public function setUpdatedAtValue(): void { $this->setUpdatedAt(new \DateTime("now")); } public function __toString() { return (string)$this->id; } public function getId(): ?int { return $this->id; } public function getCreatedAt(): ?\DateTimeInterface { return $this->createdAt; } public function setCreatedAt(?\DateTimeInterface $createdAt): static { $this->createdAt = $createdAt; return $this; } public function getUpdatedAt(): ?\DateTimeInterface { return $this->updatedAt; } public function setUpdatedAt(?\DateTimeInterface $updatedAt): static { $this->updatedAt = $updatedAt; return $this; } public function getTitle(): ?string { return $this->title; } public function setTitle(?string $title): static { $this->title = $title; return $this; } public function getTitlePage(): ?string { return $this->titlePage; } public function setTitlePage(?string $titlePage): static { $this->titlePage = $titlePage; return $this; } public function getDescriptionPage(): ?string { return $this->descriptionPage; } public function setDescriptionPage(?string $descriptionPage): static { $this->descriptionPage = $descriptionPage; return $this; } public function getDescriptionPage2(): ?string { return $this->descriptionPage2; } public function setDescriptionPage2(?string $descriptionPage2): static { $this->descriptionPage2 = $descriptionPage2; return $this; } public function getDescriptionPage3(): ?string { return $this->descriptionPage3; } public function setDescriptionPage3(?string $descriptionPage3): static { $this->descriptionPage3 = $descriptionPage3; return $this; } public function getShortTitle(): ?string { return $this->shortTitle; } public function setShortTitle(?string $shortTitle): static { $this->shortTitle = $shortTitle; return $this; } public function getShortDescription(): ?string { return $this->shortDescription; } public function setShortDescription(?string $shortDescription): static { $this->shortDescription = $shortDescription; return $this; } public function getSlug(): ?string { return $this->slug; } public function setSlug(?string $slug): static { $this->slug = $slug; return $this; } public function getType(): ?string { return $this->type; } public function setType(?string $type): static { $this->type = $type; return $this; } // === Work === public function getTitleWork1(): ?string { return $this->titleWork1; } public function setTitleWork1(?string $v): static { $this->titleWork1 = $v; return $this; } public function getTitleWork2(): ?string { return $this->titleWork2; } public function setTitleWork2(?string $v): static { $this->titleWork2 = $v; return $this; } public function getTitleWork3(): ?string { return $this->titleWork3; } public function setTitleWork3(?string $v): static { $this->titleWork3 = $v; return $this; } public function getDescriptionWork1(): ?string { return $this->descriptionWork1; } public function setDescriptionWork1(?string $v): static { $this->descriptionWork1 = $v; return $this; } public function getDescriptionWork2(): ?string { return $this->descriptionWork2; } public function setDescriptionWork2(?string $v): static { $this->descriptionWork2 = $v; return $this; } public function getDescriptionWork3(): ?string { return $this->descriptionWork3; } public function setDescriptionWork3(?string $v): static { $this->descriptionWork3 = $v; return $this; } // === Presentation - title === public function getTitlePresentation1(): ?string { return $this->titlePresentation1; } public function setTitlePresentation1(?string $v): static { $this->titlePresentation1 = $v; return $this; } public function getTitlePresentation2(): ?string { return $this->titlePresentation2; } public function setTitlePresentation2(?string $v): static { $this->titlePresentation2 = $v; return $this; } public function getTitlePresentation3(): ?string { return $this->titlePresentation3; } public function setTitlePresentation3(?string $v): static { $this->titlePresentation3 = $v; return $this; } public function getTitlePresentation4(): ?string { return $this->titlePresentation4; } public function setTitlePresentation4(?string $v): static { $this->titlePresentation4 = $v; return $this; } // === Presentation - description === public function getDescriptionPresentation1(): ?string { return $this->descriptionPresentation1; } public function setDescriptionPresentation1(?string $v): static { $this->descriptionPresentation1 = $v; return $this; } public function getDescriptionPresentation2(): ?string { return $this->descriptionPresentation2; } public function setDescriptionPresentation2(?string $v): static { $this->descriptionPresentation2 = $v; return $this; } public function getDescriptionPresentation3(): ?string { return $this->descriptionPresentation3; } public function setDescriptionPresentation3(?string $v): static { $this->descriptionPresentation3 = $v; return $this; } public function getDescriptionPresentation4(): ?string { return $this->descriptionPresentation4; } public function setDescriptionPresentation4(?string $v): static { $this->descriptionPresentation4 = $v; return $this; } // === Presentation - citation === public function getCitationPresentation1(): ?string { return $this->citationPresentation1; } public function setCitationPresentation1(?string $v): static { $this->citationPresentation1 = $v; return $this; } public function getCitationPresentation2(): ?string { return $this->citationPresentation2; } public function setCitationPresentation2(?string $v): static { $this->citationPresentation2 = $v; return $this; } public function getCitationPresentation3(): ?string { return $this->citationPresentation3; } public function setCitationPresentation3(?string $v): static { $this->citationPresentation3 = $v; return $this; } public function getCitationPresentation4(): ?string { return $this->citationPresentation4; } public function setCitationPresentation4(?string $v): static { $this->citationPresentation4 = $v; return $this; } // === Presentation - label (NEW) === public function getLabelPresentation1(): ?string { return $this->labelPresentation1; } public function setLabelPresentation1(?string $v): static { $this->labelPresentation1 = $v; return $this; } public function getLabelPresentation2(): ?string { return $this->labelPresentation2; } public function setLabelPresentation2(?string $v): static { $this->labelPresentation2 = $v; return $this; } public function getLabelPresentation3(): ?string { return $this->labelPresentation3; } public function setLabelPresentation3(?string $v): static { $this->labelPresentation3 = $v; return $this; } public function getLabelPresentation4(): ?string { return $this->labelPresentation4; } public function setLabelPresentation4(?string $v): static { $this->labelPresentation4 = $v; return $this; } // === Presentation - author (NEW) === public function getAuthorPresentation1(): ?string { return $this->authorPresentation1; } public function setAuthorPresentation1(?string $v): static { $this->authorPresentation1 = $v; return $this; } public function getAuthorPresentation2(): ?string { return $this->authorPresentation2; } public function setAuthorPresentation2(?string $v): static { $this->authorPresentation2 = $v; return $this; } public function getAuthorPresentation3(): ?string { return $this->authorPresentation3; } public function setAuthorPresentation3(?string $v): static { $this->authorPresentation3 = $v; return $this; } public function getAuthorPresentation4(): ?string { return $this->authorPresentation4; } public function setAuthorPresentation4(?string $v): static { $this->authorPresentation4 = $v; return $this; } // === Presentation - role (NEW) === public function getRolePresentation1(): ?string { return $this->rolePresentation1; } public function setRolePresentation1(?string $v): static { $this->rolePresentation1 = $v; return $this; } public function getRolePresentation2(): ?string { return $this->rolePresentation2; } public function setRolePresentation2(?string $v): static { $this->rolePresentation2 = $v; return $this; } public function getRolePresentation3(): ?string { return $this->rolePresentation3; } public function setRolePresentation3(?string $v): static { $this->rolePresentation3 = $v; return $this; } public function getRolePresentation4(): ?string { return $this->rolePresentation4; } public function setRolePresentation4(?string $v): static { $this->rolePresentation4 = $v; return $this; } // === Locale & visibilité === public function getLocale(): ?string { return $this->locale; } public function setLocale(?string $locale): static { $this->locale = $locale; return $this; } public function isFeatured(): ?bool { return $this->featured; } public function getFeatured(): ?bool { return $this->featured; } public function setFeatured(?bool $featured): static { $this->featured = $featured; return $this; } public function getPosition(): ?int { return $this->position; } public function setPosition(?int $position): static { $this->position = $position; return $this; } public function isOnline(): ?bool { return $this->online; } public function getOnline(): ?bool { return $this->online; } public function setOnline(?bool $online): static { $this->online = $online; return $this; }}