src/Entity/Fichier.php line 12

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