src/Entity/DocumentStyle.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\DocumentStyleRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassDocumentStyleRepository::class)]
  7. #[ORM\Table(name'document_style')]
  8. class DocumentStyle
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column]
  13.     private ?int $id null;
  14.     #[ORM\Column(length255)]
  15.     private ?string $nom null;
  16.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  17.     private ?string $description null;
  18.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  19.     private ?string $css null;
  20.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  21.     private ?\DateTimeInterface $date_creation null;
  22.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  23.     private ?\DateTimeInterface $date_modification null;
  24.     public function getId(): ?int
  25.     {
  26.         return $this->id;
  27.     }
  28.     public function getNom(): ?string
  29.     {
  30.         return $this->nom;
  31.     }
  32.     public function setNom(string $nom): static
  33.     {
  34.         $this->nom $nom;
  35.         return $this;
  36.     }
  37.     public function getDescription(): ?string
  38.     {
  39.         return $this->description;
  40.     }
  41.     public function setDescription(?string $description): static
  42.     {
  43.         $this->description $description;
  44.         return $this;
  45.     }
  46.     public function getCss(): ?string
  47.     {
  48.         return $this->css;
  49.     }
  50.     public function setCss(?string $css): static
  51.     {
  52.         $this->css $css;
  53.         return $this;
  54.     }
  55.     public function getDateCreation(): ?\DateTimeInterface
  56.     {
  57.         return $this->date_creation;
  58.     }
  59.     public function setDateCreation(?\DateTimeInterface $date_creation): static
  60.     {
  61.         $this->date_creation $date_creation;
  62.         return $this;
  63.     }
  64.     public function getDateModification(): ?\DateTimeInterface
  65.     {
  66.         return $this->date_modification;
  67.     }
  68.     public function setDateModification(?\DateTimeInterface $date_modification): static
  69.     {
  70.         $this->date_modification $date_modification;
  71.         return $this;
  72.     }
  73. }