src/Entity/ProfilPicture.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Symfony\Component\HttpFoundation\File\UploadedFile;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass="App\Repository\ProfilPictureRepository")
  7.  */
  8. class ProfilPicture
  9. {
  10.     /**
  11.      * @ORM\Id()
  12.      * @ORM\GeneratedValue()
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     
  17.     /**
  18.      * @ORM\Column(type="string", length=255, nullable=true)
  19.      */
  20.     private $pictureProfile;
  21.     
  22.     private $picture;
  23.     public function getId(): ?int
  24.     {
  25.         return $this->id;
  26.     }
  27.     
  28.     public function getPictureProfile(): ?string
  29.     {
  30.         return $this->pictureProfile;
  31.     }
  32.     public function setPictureProfile(?string $pictureProfile): self
  33.     {
  34.         $this->pictureProfile $pictureProfile;
  35.         return $this;
  36.     }
  37.     public function getPicture()
  38.     {
  39.         return $this->picture;
  40.     }
  41.     
  42.     /**
  43.      *
  44.      * @param UploadedFile $picture
  45.      * @return \App\Entity\User
  46.      */
  47.     public function setPicture(UploadedFile $picture=null)
  48.     {
  49.         $this->picture=$picture;
  50.         
  51.     }
  52. }