<?phpnamespace App\Entity;use App\Repository\DocumentStructureRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: DocumentStructureRepository::class)]#[ORM\Table(name: 'document_structure')]class DocumentStructure{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] private ?int $id = null; #[ORM\Column(length: 255)] private ?string $nom = null; #[ORM\Column(type: Types::TEXT, nullable: true)] private ?string $description = null; #[ORM\Column(type: Types::TEXT, nullable: true)] private ?string $entete_html = null; #[ORM\Column(type: Types::TEXT, nullable: true)] private ?string $pied_de_page_html = null; #[ORM\ManyToOne(targetEntity: DocumentStyle::class)] #[ORM\JoinColumn(name: 'style_par_defaut_id', nullable: false)] private ?DocumentStyle $styleParDefaut = null; #[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)] private ?\DateTimeInterface $date_creation = null; #[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)] private ?\DateTimeInterface $date_modification = null; #[ORM\OneToMany(mappedBy: 'structure', targetEntity: TemplateDocument::class, cascade: ['remove'])] private Collection $templateDocuments; public function __construct() { $this->templateDocuments = new ArrayCollection(); } public function getTemplateDocuments(): Collection { return $this->templateDocuments; } public function getId(): ?int { return $this->id; } public function getNom(): ?string { return $this->nom; } public function setNom(string $nom): static { $this->nom = $nom; return $this; } public function getDescription(): ?string { return $this->description; } public function setDescription(?string $description): static { $this->description = $description; return $this; } public function getEnteteHtml(): ?string { return $this->entete_html; } public function setEnteteHtml(?string $entete_html): static { $this->entete_html = $entete_html; return $this; } public function getPiedDePageHtml(): ?string { return $this->pied_de_page_html; } public function setPiedDePageHtml(?string $pied_de_page_html): static { $this->pied_de_page_html = $pied_de_page_html; return $this; } public function getStyleParDefaut(): ?DocumentStyle { return $this->styleParDefaut; } public function setStyleParDefaut(DocumentStyle $styleParDefaut): static { $this->styleParDefaut = $styleParDefaut; return $this; } public function getDateCreation(): ?\DateTimeInterface { return $this->date_creation; } public function setDateCreation(?\DateTimeInterface $date_creation): static { $this->date_creation = $date_creation; return $this; } public function getDateModification(): ?\DateTimeInterface { return $this->date_modification; } public function setDateModification(?\DateTimeInterface $date_modification): static { $this->date_modification = $date_modification; return $this; }}