src/Entity/Fichier.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\FichierRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassFichierRepository::class)]
  7. class Fichier
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\ManyToOne(inversedBy'fichiers')]
  14.     private ?Contact $contact null;
  15.     #[ORM\ManyToOne(inversedBy'fichiers')]
  16.     private ?Project $projet null;
  17.     #[ORM\ManyToOne(inversedBy'fichiers')]
  18.     private ?Document $document null;
  19.     #[ORM\Column]
  20.     private ?bool $societe null;
  21.     #[ORM\Column(length255)]
  22.     private ?string $titre null;
  23.     #[ORM\Column(nullabletrue)]
  24.     private ?int $taille null;
  25.     #[ORM\Column(nullabletrue)]
  26.     private ?int $largeur null;
  27.     #[ORM\Column(nullabletrue)]
  28.     private ?int $hauteur null;
  29.     #[ORM\Column(typeTypes::TEXT)]
  30.     private ?string $description null;
  31.     #[ORM\Column(typeTypes::TEXT)]
  32.     private ?string $contenu_ocr null;
  33.     #[ORM\Column(typeTypes::DATE_MUTABLE)]
  34.     private ?\DateTimeInterface $date_creation null;
  35.     #[ORM\Column(length20)]
  36.     private ?string $token null;
  37.     #[ORM\Column(length20)]
  38.     private ?string $extension null;
  39.     #[ORM\Column(length255nullabletrue)]
  40.     private ?string $min_emplacement null;
  41.     #[ORM\Column(length255nullabletrue)]
  42.     private ?string $fichier_emplacement null;
  43.     #[ORM\Column(length255)]
  44.     private ?string $type null;
  45.     public function getId(): ?int
  46.     {
  47.         return $this->id;
  48.     }
  49.     public function getContact(): ?Contact
  50.     {
  51.         return $this->contact;
  52.     }
  53.     public function setContact(?Contact $contact): static
  54.     {
  55.         $this->contact $contact;
  56.         return $this;
  57.     }
  58.     public function getProjet(): ?Project
  59.     {
  60.         return $this->projet;
  61.     }
  62.     public function setProjet(?Project $projet): static
  63.     {
  64.         $this->projet $projet;
  65.         return $this;
  66.     }
  67.     public function getDocument(): ?Document
  68.     {
  69.         return $this->document;
  70.     }
  71.     public function setDocument(?Document $document): static
  72.     {
  73.         $this->document $document;
  74.         return $this;
  75.     }
  76.     public function isSociete(): ?bool
  77.     {
  78.         return $this->societe;
  79.     }
  80.     public function setSociete(bool $societe): static
  81.     {
  82.         $this->societe $societe;
  83.         return $this;
  84.     }
  85.     public function getTitre(): ?string
  86.     {
  87.         return $this->titre;
  88.     }
  89.     public function setTitre(string $titre): static
  90.     {
  91.         $this->titre $titre;
  92.         return $this;
  93.     }
  94.     public function getTaille(): ?int
  95.     {
  96.         return $this->taille;
  97.     }
  98.     public function setTaille(int $taille): static
  99.     {
  100.         $this->taille $taille;
  101.         return $this;
  102.     }
  103.     public function getLargeur(): ?int
  104.     {
  105.         return $this->largeur;
  106.     }
  107.     public function setLargeur(int $largeur): static
  108.     {
  109.         $this->largeur $largeur;
  110.         return $this;
  111.     }
  112.     public function getHauteur(): ?int
  113.     {
  114.         return $this->hauteur;
  115.     }
  116.     public function setHauteur(int $hauteur): static
  117.     {
  118.         $this->hauteur $hauteur;
  119.         return $this;
  120.     }
  121.     public function getDescription(): ?string
  122.     {
  123.         return $this->description;
  124.     }
  125.     public function setDescription(string $description): static
  126.     {
  127.         $this->description $description;
  128.         return $this;
  129.     }
  130.     public function getContenuOcr(): ?string
  131.     {
  132.         return $this->contenu_ocr;
  133.     }
  134.     public function setContenuOcr(string $contenu_ocr): static
  135.     {
  136.         $this->contenu_ocr $contenu_ocr;
  137.         return $this;
  138.     }
  139.     public function getDateCreation(): ?\DateTimeInterface
  140.     {
  141.         return $this->date_creation;
  142.     }
  143.     public function setDateCreation(\DateTimeInterface $date_creation): static
  144.     {
  145.         $this->date_creation $date_creation;
  146.         return $this;
  147.     }
  148.     public function getToken(): ?string
  149.     {
  150.         return $this->token;
  151.     }
  152.     public function setToken(string $token): static
  153.     {
  154.         $this->token $token;
  155.         return $this;
  156.     }
  157.     public function getExtension(): ?string
  158.     {
  159.         return $this->extension;
  160.     }
  161.     public function setExtension(string $extension): static
  162.     {
  163.         $this->extension $extension;
  164.         return $this;
  165.     }
  166.     public function getMinEmplacement(): ?string
  167.     {
  168.         return $this->min_emplacement;
  169.     }
  170.     public function setMinEmplacement(?string $min_emplacement): static
  171.     {
  172.         $this->min_emplacement $min_emplacement;
  173.         return $this;
  174.     }
  175.     public function getFichierEmplacement(): ?string
  176.     {
  177.         return $this->fichier_emplacement;
  178.     }
  179.     public function setFichierEmplacement(?string $fichier_emplacement): static
  180.     {
  181.         $this->fichier_emplacement $fichier_emplacement;
  182.         return $this;
  183.     }
  184.     public function getType(): ?string
  185.     {
  186.         return $this->type;
  187.     }
  188.     public function setType(string $type): static
  189.     {
  190.         $this->type $type;
  191.         return $this;
  192.     }
  193. }