src/Entity/Certification.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CertificationRepository;
  4. use Doctrine\ORM\Mapping as ORM
  5. use Symfony\Component\HttpFoundation\File\File
  6. use Vich\UploaderBundle\Mapping\Annotation as Vich
  7. /**
  8.  * @ORM\Entity(repositoryClass=CertificationRepository::class) 
  9.  * @Vich\Uploadable
  10.  */
  11. class Certification
  12. {
  13.     /**
  14.      * @ORM\Id
  15.      * @ORM\GeneratedValue
  16.      * @ORM\Column(type="integer")
  17.      */
  18.     private $id;
  19.     /**
  20.      * @ORM\Column(type="string", length=255, nullable=true)
  21.      */
  22.     private $image;
  23.     /**
  24.     * @Vich\UploadableField(mapping="certification_image", fileNameProperty="image")
  25.     */
  26.     private $fichier;
  27.     /**
  28.      * @ORM\Column(type="text", nullable=true)
  29.      */
  30.     private $description;
  31.     public function getId(): ?int
  32.     {
  33.         return $this->id;
  34.     }
  35.     public function getImage(): ?string
  36.     {
  37.         return $this->image;
  38.     }
  39.     public function setImage(?string $image): self
  40.     {
  41.         $this->image $image;
  42.         return $this;
  43.     }
  44.     public function getFichier()
  45.     {
  46.        return $this->fichier
  47.     }
  48.     public function setFichier(?File $image null)
  49.     {
  50.         $this->fichier $image;
  51.     }
  52.     public function getDescription(): ?string
  53.     {
  54.         return $this->description;
  55.     }
  56.     public function setDescription(?string $description): self
  57.     {
  58.         $this->description $description;
  59.         return $this;
  60.     }
  61. }