src/Entity/ContractBail.php line 11

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ContractBailRepository;
  4. use App\Traits\TimeStampTrait;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassContractBailRepository::class)]
  7. #[ORM\HasLifecycleCallbacks]
  8. class ContractBail
  9. {
  10.     use TimeStampTrait;
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\Column(length255)]
  16.     private ?string $libelle null;
  17.     #[ORM\ManyToOne(inversedBy'contrat')]
  18.     private ?Location $location null;
  19.     #[ORM\ManyToOne(inversedBy'contractBails')]
  20.     private ?Entreprise $marchand null;
  21.     #[ORM\Column(length25nullabletrue)]
  22.     private ?string $filesize null;
  23.     #[ORM\Column(length255nullabletrue)]
  24.     private ?string $filename null;
  25.     /**
  26.      * @return int|null
  27.      */
  28.     public function getId(): ?int
  29.     {
  30.         return $this->id;
  31.     }
  32.     /**
  33.      * @param int|null $id
  34.      */
  35.     public function setId(?int $id): void
  36.     {
  37.         $this->id $id;
  38.     }
  39.     /**
  40.      * @return string|null
  41.      */
  42.     public function getLibelle(): ?string
  43.     {
  44.         return $this->libelle;
  45.     }
  46.     /**
  47.      * @param string|null $libelle
  48.      */
  49.     public function setLibelle(?string $libelle): void
  50.     {
  51.         $this->libelle $libelle;
  52.     }
  53.     /**
  54.      * @return Location|null
  55.      */
  56.     public function getLocation(): ?Location
  57.     {
  58.         return $this->location;
  59.     }
  60.     /**
  61.      * @param Location|null $location
  62.      */
  63.     public function setLocation(?Location $location): void
  64.     {
  65.         $this->location $location;
  66.     }
  67.     /**
  68.      * @return Entreprise|null
  69.      */
  70.     public function getMarchand(): ?Entreprise
  71.     {
  72.         return $this->marchand;
  73.     }
  74.     /**
  75.      * @param Entreprise|null $marchand
  76.      */
  77.     public function setMarchand(?Entreprise $marchand): void
  78.     {
  79.         $this->marchand $marchand;
  80.     }
  81.     public function getFilesize(): ?string
  82.     {
  83.         return $this->filesize;
  84.     }
  85.     public function setFilesize(?string $filesize): static
  86.     {
  87.         $this->filesize $filesize;
  88.         return $this;
  89.     }
  90.     public function getFilename(): ?string
  91.     {
  92.         return $this->filename;
  93.     }
  94.     public function setFilename(?string $filename): static
  95.     {
  96.         $this->filename $filename;
  97.         return $this;
  98.     }
  99. }