src/Entity/DocumentStructure.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\DocumentStructureRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\DBAL\Types\Types;
  7. use Doctrine\ORM\Mapping as ORM;
  8. #[ORM\Entity(repositoryClassDocumentStructureRepository::class)]
  9. #[ORM\Table(name'document_structure')]
  10. class DocumentStructure
  11. {
  12.     #[ORM\Id]
  13.     #[ORM\GeneratedValue]
  14.     #[ORM\Column]
  15.     private ?int $id null;
  16.     #[ORM\Column(length255)]
  17.     private ?string $nom null;
  18.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  19.     private ?string $description null;
  20.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  21.     private ?string $entete_html null;
  22.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  23.     private ?string $pied_de_page_html null;
  24.     #[ORM\ManyToOne(targetEntityDocumentStyle::class)]
  25.     #[ORM\JoinColumn(name'style_par_defaut_id'nullablefalse)]
  26.     private ?DocumentStyle $styleParDefaut null;
  27.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  28.     private ?\DateTimeInterface $date_creation null;
  29.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  30.     private ?\DateTimeInterface $date_modification null;
  31.     #[ORM\OneToMany(mappedBy'structure'targetEntityTemplateDocument::class, cascade: ['remove'])]
  32.     private Collection $templateDocuments;
  33.     public function __construct()
  34.     {
  35.         $this->templateDocuments = new ArrayCollection();
  36.     }
  37.     public function getTemplateDocuments(): Collection
  38.     {
  39.         return $this->templateDocuments;
  40.     }
  41.     public function getId(): ?int
  42.     {
  43.         return $this->id;
  44.     }
  45.     public function getNom(): ?string
  46.     {
  47.         return $this->nom;
  48.     }
  49.     public function setNom(string $nom): static
  50.     {
  51.         $this->nom $nom;
  52.         return $this;
  53.     }
  54.     public function getDescription(): ?string
  55.     {
  56.         return $this->description;
  57.     }
  58.     public function setDescription(?string $description): static
  59.     {
  60.         $this->description $description;
  61.         return $this;
  62.     }
  63.     public function getEnteteHtml(): ?string
  64.     {
  65.         return $this->entete_html;
  66.     }
  67.     public function setEnteteHtml(?string $entete_html): static
  68.     {
  69.         $this->entete_html $entete_html;
  70.         return $this;
  71.     }
  72.     public function getPiedDePageHtml(): ?string
  73.     {
  74.         return $this->pied_de_page_html;
  75.     }
  76.     public function setPiedDePageHtml(?string $pied_de_page_html): static
  77.     {
  78.         $this->pied_de_page_html $pied_de_page_html;
  79.         return $this;
  80.     }
  81.     public function getStyleParDefaut(): ?DocumentStyle
  82.     {
  83.         return $this->styleParDefaut;
  84.     }
  85.     public function setStyleParDefaut(DocumentStyle $styleParDefaut): static
  86.     {
  87.         $this->styleParDefaut $styleParDefaut;
  88.         return $this;
  89.     }
  90.     public function getDateCreation(): ?\DateTimeInterface
  91.     {
  92.         return $this->date_creation;
  93.     }
  94.     public function setDateCreation(?\DateTimeInterface $date_creation): static
  95.     {
  96.         $this->date_creation $date_creation;
  97.         return $this;
  98.     }
  99.     public function getDateModification(): ?\DateTimeInterface
  100.     {
  101.         return $this->date_modification;
  102.     }
  103.     public function setDateModification(?\DateTimeInterface $date_modification): static
  104.     {
  105.         $this->date_modification $date_modification;
  106.         return $this;
  107.     }
  108. }