<?php
namespace App\Entity;
use ApiPlatform\Core\Annotation\ApiResource;
use App\Controller\ImageProfileController;
use App\Repository\GalleryRepository;
use App\Repository\ImageProfileRepository;
use Doctrine\ORM\Mapping as ORM;
use phpDocumentor\Reflection\File;
use Symfony\Component\Serializer\Annotation\Groups;
use ApiPlatform\Core\Annotation\ApiFilter;
use ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\BooleanFilter;
use ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\SearchFilter;
#[ApiResource(
collectionOperations: ['get' => ['normalization_context' => ['groups' => 'read']] ],
)]
#[ORM\Entity(repositoryClass: ImageProfileRepository::class)]
class ImageProfile
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $profileImage;
/**
* @return mixed
*/
public function getId()
{
return $this->id;
}
/**
* @param mixed $id
*/
public function setId($id): void
{
$this->id = $id;
}
/**
* @return mixed
*/
public function getProfileImage()
{
return $this->profileImage;
}
/**
* @param mixed $profileImage
*/
public function setProfileImage($profileImage): void
{
$this->profileImage = $profileImage;
}
}