src/Entity/Webfactory/Actualites/WebfactoryActualiteContenu.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Webfactory\Actualites;
  3. use App\Repository\Webfactory\Actualites\WebfactoryActualiteContenuRepository;
  4. use DateTimeImmutable;
  5. use Doctrine\DBAL\Types\Types;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Table(name'webfactory_actualite_contenu')]
  8. #[ORM\Entity(repositoryClassWebfactoryActualiteContenuRepository::class)]
  9. class WebfactoryActualiteContenu
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id;
  15.     #[ORM\Column(length255)]
  16.     private ?string $title;
  17.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  18.     private ?string $content;
  19.     #[ORM\Column(type'string'length255nullabletrue)]
  20.     private ?string $image;
  21.     #[ORM\Column(length255nullabletrue)]
  22.     private ?string $metatitle;
  23.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  24.     private ?string $metadesc;
  25.     #[ORM\Column]
  26.     private ?DateTimeImmutable $created_at;
  27.     #[ORM\Column]
  28.     private ?DateTimeImmutable $updated_at;
  29.     #[ORM\Column(length255)]
  30.     private ?string $lang null;
  31.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  32.     private ?string $metakeywords;
  33.     #[ORM\Column(length255)]
  34.     private ?string $slug;
  35.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  36.     private ?string $shortDescription;
  37.     #[ORM\ManyToOne(inversedBy'webfactoryActualiteContenus')]
  38.     private ?WebfactoryActualite $article null;
  39.     #[ORM\Column(length255nullabletrue)]
  40.     private ?string $statut null;
  41.     #[ORM\Column(typeTypes::DATE_MUTABLEnullabletrue)]
  42.     private ?\DateTimeInterface $date_debut_publication null;
  43.     #[ORM\Column(typeTypes::DATE_MUTABLEnullabletrue)]
  44.     private ?\DateTimeInterface $date_fin_publication null;
  45.     public function __construct()
  46.     {
  47.         $this->created_at = new DateTimeImmutable("now");
  48.         $this->updated_at = new DateTimeImmutable("now");
  49.         $this->statut "publiĆ©";
  50.     }
  51.     public function getId(): ?int
  52.     {
  53.         return $this->id;
  54.     }
  55.     public function getTitle(): ?string
  56.     {
  57.         return $this->title;
  58.     }
  59.     public function setTitle(string $title): static
  60.     {
  61.         $this->title $title;
  62.         return $this;
  63.     }
  64.     public function getContent(): ?string
  65.     {
  66.         return $this->content;
  67.     }
  68.     public function setContent(?string $content): static
  69.     {
  70.         $this->content $content;
  71.         return $this;
  72.     }
  73.     public function getImage(): ?string
  74.     {
  75.         return $this->image;
  76.     }
  77.     public function setImage($image): self
  78.     {
  79.         $this->image $image;
  80.         return $this;
  81.     }
  82.     public function getMetatitle(): ?string
  83.     {
  84.         return $this->metatitle;
  85.     }
  86.     public function setMetatitle(?string $metatitle): static
  87.     {
  88.         $this->metatitle $metatitle;
  89.         return $this;
  90.     }
  91.     public function getMetadesc(): ?string
  92.     {
  93.         return $this->metadesc;
  94.     }
  95.     public function setMetadesc(?string $metadesc): static
  96.     {
  97.         $this->metadesc $metadesc;
  98.         return $this;
  99.     }
  100.     public function getCreatedAt(): ?DateTimeImmutable
  101.     {
  102.         return $this->created_at;
  103.     }
  104.     public function setCreatedAt(DateTimeImmutable $created_at): static
  105.     {
  106.         $this->created_at $created_at;
  107.         return $this;
  108.     }
  109.     public function getUpdatedAt(): ?DateTimeImmutable
  110.     {
  111.         return $this->updated_at;
  112.     }
  113.     public function setUpdatedAt(DateTimeImmutable $updated_at): static
  114.     {
  115.         $this->updated_at $updated_at;
  116.         return $this;
  117.     }
  118.     public function getLang(): ?string
  119.     {
  120.         return $this->lang;
  121.     }
  122.     public function setLang(string $lang): static
  123.     {
  124.         $this->lang $lang;
  125.         return $this;
  126.     }
  127.     public function getMetakeywords(): ?string
  128.     {
  129.         return $this->metakeywords;
  130.     }
  131.     public function setMetakeywords(?string $metakeywords): static
  132.     {
  133.         $this->metakeywords $metakeywords;
  134.         return $this;
  135.     }
  136.     public function getSlug(): ?string
  137.     {
  138.         return $this->slug;
  139.     }
  140.     public function setSlug(string $slug): static
  141.     {
  142.         $this->slug $slug;
  143.         return $this;
  144.     }
  145.     public function getShortDescription(): ?string
  146.     {
  147.         return $this->shortDescription;
  148.     }
  149.     public function setShortDescription(?string $shortDescription): static
  150.     {
  151.         $this->shortDescription $shortDescription;
  152.         return $this;
  153.     }
  154.     public function getArticle(): ?WebfactoryActualite
  155.     {
  156.         return $this->article;
  157.     }
  158.     public function setArticle(?WebfactoryActualite $article): static
  159.     {
  160.         $this->article $article;
  161.         return $this;
  162.     }
  163.     public function getStatut(): ?string
  164.     {
  165.         return $this->statut;
  166.     }
  167.     public function setStatut(?string $statut): static
  168.     {
  169.         $this->statut $statut;
  170.         return $this;
  171.     }
  172.     public function getDateDebutPublication(): ?\DateTimeInterface
  173.     {
  174.         return $this->date_debut_publication;
  175.     }
  176.     public function setDateDebutPublication(?\DateTimeInterface $date_debut_publication): static
  177.     {
  178.         $this->date_debut_publication $date_debut_publication;
  179.         return $this;
  180.     }
  181.     public function getDateFinPublication(): ?\DateTimeInterface
  182.     {
  183.         return $this->date_fin_publication;
  184.     }
  185.     public function setDateFinPublication(?\DateTimeInterface $date_fin_publication): static
  186.     {
  187.         $this->date_fin_publication $date_fin_publication;
  188.         return $this;
  189.     }
  190. }