<?php
namespace App\Entity;
use App\Repository\FichierRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: FichierRepository::class)]
class Fichier
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\ManyToOne(inversedBy: 'fichiers')]
private ?Contact $contact = null;
#[ORM\ManyToOne(inversedBy: 'fichiers')]
private ?Project $projet = null;
#[ORM\ManyToOne(inversedBy: 'fichiers')]
private ?Document $document = null;
#[ORM\Column]
private ?bool $societe = null;
#[ORM\Column(length: 255)]
private ?string $titre = null;
#[ORM\Column(nullable: true)]
private ?int $taille = null;
#[ORM\Column(nullable: true)]
private ?int $largeur = null;
#[ORM\Column(nullable: true)]
private ?int $hauteur = null;
#[ORM\Column(type: Types::TEXT)]
private ?string $description = null;
#[ORM\Column(type: Types::TEXT)]
private ?string $contenu_ocr = null;
#[ORM\Column(type: Types::DATE_MUTABLE)]
private ?\DateTimeInterface $date_creation = null;
#[ORM\Column(length: 20)]
private ?string $token = null;
#[ORM\Column(length: 20)]
private ?string $extension = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $min_emplacement = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $fichier_emplacement = null;
#[ORM\Column(length: 255)]
private ?string $type = null;
public function getId(): ?int
{
return $this->id;
}
public function getContact(): ?Contact
{
return $this->contact;
}
public function setContact(?Contact $contact): static
{
$this->contact = $contact;
return $this;
}
public function getProjet(): ?Project
{
return $this->projet;
}
public function setProjet(?Project $projet): static
{
$this->projet = $projet;
return $this;
}
public function getDocument(): ?Document
{
return $this->document;
}
public function setDocument(?Document $document): static
{
$this->document = $document;
return $this;
}
public function isSociete(): ?bool
{
return $this->societe;
}
public function setSociete(bool $societe): static
{
$this->societe = $societe;
return $this;
}
public function getTitre(): ?string
{
return $this->titre;
}
public function setTitre(string $titre): static
{
$this->titre = $titre;
return $this;
}
public function getTaille(): ?int
{
return $this->taille;
}
public function setTaille(int $taille): static
{
$this->taille = $taille;
return $this;
}
public function getLargeur(): ?int
{
return $this->largeur;
}
public function setLargeur(int $largeur): static
{
$this->largeur = $largeur;
return $this;
}
public function getHauteur(): ?int
{
return $this->hauteur;
}
public function setHauteur(int $hauteur): static
{
$this->hauteur = $hauteur;
return $this;
}
public function getDescription(): ?string
{
return $this->description;
}
public function setDescription(string $description): static
{
$this->description = $description;
return $this;
}
public function getContenuOcr(): ?string
{
return $this->contenu_ocr;
}
public function setContenuOcr(string $contenu_ocr): static
{
$this->contenu_ocr = $contenu_ocr;
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 getToken(): ?string
{
return $this->token;
}
public function setToken(string $token): static
{
$this->token = $token;
return $this;
}
public function getExtension(): ?string
{
return $this->extension;
}
public function setExtension(string $extension): static
{
$this->extension = $extension;
return $this;
}
public function getMinEmplacement(): ?string
{
return $this->min_emplacement;
}
public function setMinEmplacement(?string $min_emplacement): static
{
$this->min_emplacement = $min_emplacement;
return $this;
}
public function getFichierEmplacement(): ?string
{
return $this->fichier_emplacement;
}
public function setFichierEmplacement(?string $fichier_emplacement): static
{
$this->fichier_emplacement = $fichier_emplacement;
return $this;
}
public function getType(): ?string
{
return $this->type;
}
public function setType(string $type): static
{
$this->type = $type;
return $this;
}
}