src/Entity/CarteTier.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CarteTierRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Vich\UploaderBundle\Entity\File
  6. use Vich\UploaderBundle\Mapping\Annotation as Vich;
  7. /**
  8.  * @ORM\Entity(repositoryClass=CarteTierRepository::class)
  9.  */
  10. class CarteTier
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private ?int $id null
  18.      /**
  19.      * @ORM\ManyToOne(targetEntity=TypeCarteTier::class, inversedBy="carteTier")
  20.      */
  21.     private $typeCarteTier;  
  22.     
  23.     /**
  24.      * @ORM\Column(type="string", length=255)
  25.      */
  26.     private $fichierCarte
  27.     
  28.     /**
  29.     * @Vich\UploadableField(mapping="fichierCarte", fileNameProperty="fileDiplome")
  30.     */
  31.     private $fichier
  32.      /**
  33.      * @ORM\ManyToOne(targetEntity=Tier::class, inversedBy="document")
  34.      */
  35.     private $tier
  36.      /**
  37.      * @ORM\Column(type="datetime_immutable")
  38.      */
  39.     private $DateExpiration;
  40.     public function getId(): ?int
  41.     {
  42.         return $this->id;
  43.     }
  44.     public function getTypeCarte(): ?TypeCarteTier
  45.     {
  46.         return $this->typeCarteTier;
  47.     }
  48.     public function setTypeCarte(?TypeCarteTier $typeCarte): self
  49.     {
  50.         $this->typeCarteTier $typeCarte;
  51.         return $this;
  52.     }
  53.     public function getFichierCarte(): ?string
  54.     {
  55.         return $this->fichierCarte;
  56.     }
  57.     public function setFichierCarte(string $fichierDocument): self
  58.     {
  59.         $this->fichierCarte $fichierDocument;
  60.         return $this;
  61.     }
  62.     public function getTier(): ?Tier
  63.     {
  64.         return $this->tier;
  65.     }
  66.     public function setTier(?Tier $tier): self
  67.     {
  68.         $this->tier $tier;
  69.         return $this;
  70.     } 
  71.     public function getFichier() 
  72.     {
  73.        return $this->fichier;  
  74.     } 
  75.     public function setFichier(?File $image null)
  76.     {
  77.         $this->fichier $image;
  78.     } 
  79.     public function getDateExpiration(): ?\DateTimeImmutable
  80.     {
  81.         return $this->DateExpiration;
  82.     }
  83.     public function setDateExpiration(\DateTimeImmutable $DateExpiration): self
  84.     {
  85.         $this->DateExpiration $DateExpiration;
  86.         return $this;
  87.     }
  88. }