src/Entity/ImageProfile.php line 22

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use ApiPlatform\Core\Annotation\ApiResource;
  4. use App\Controller\ImageProfileController;
  5. use App\Repository\GalleryRepository;
  6. use App\Repository\ImageProfileRepository;
  7. use Doctrine\ORM\Mapping as ORM;
  8. use phpDocumentor\Reflection\File;
  9. use Symfony\Component\Serializer\Annotation\Groups;
  10. use ApiPlatform\Core\Annotation\ApiFilter;
  11. use ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\BooleanFilter;
  12. use ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\SearchFilter;
  13. #[ApiResource(
  14.     collectionOperations: ['get' => ['normalization_context' => ['groups' => 'read']] ],
  15. )]
  16. #[ORM\Entity(repositoryClassImageProfileRepository::class)]
  17. class ImageProfile
  18. {
  19.     #[ORM\Id]
  20.     #[ORM\GeneratedValue]
  21.     #[ORM\Column(type'integer')]
  22.     private $id;
  23.     #[ORM\Column(type'string'length255nullabletrue)]
  24.     private $profileImage;
  25.     /**
  26.      * @return mixed
  27.      */
  28.     public function getId()
  29.     {
  30.         return $this->id;
  31.     }
  32.     /**
  33.      * @param mixed $id
  34.      */
  35.     public function setId($id): void
  36.     {
  37.         $this->id $id;
  38.     }
  39.     /**
  40.      * @return mixed
  41.      */
  42.     public function getProfileImage()
  43.     {
  44.         return $this->profileImage;
  45.     }
  46.     /**
  47.      * @param mixed $profileImage
  48.      */
  49.     public function setProfileImage($profileImage): void
  50.     {
  51.         $this->profileImage $profileImage;
  52.     }
  53. }