<?php
namespace App\Entity;
use ApiPlatform\Core\Annotation\ApiResource;
use Doctrine\ORM\Mapping as ORM;
use App\Repository\CookiesRepository;
/**
* @ORM\Entity(repositoryClass=CookiesRepository::class)*
* @ApiResource(
* collectionOperations={
* "get-cookies"={
* "method"="GET",
* "path"="/public/cookies",
* }
* },
* itemOperations={"get"={"method"="GET"}}
* )
*/
class Cookies
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="datetime_immutable")
*/
private $createAt;
/**
* @ORM\Column(type="datetime_immutable")
*/
private $LastModifAt;
/**
* @ORM\Column(type="string", length=255)
*/
private $content;
public function getId(): ?int
{
return $this->id;
}
public function getCreateAt(): ?\DateTimeImmutable
{
return $this->createAt;
}
public function setCreateAt(\DateTimeImmutable $createAt): self
{
$this->createAt = $createAt;
return $this;
}
public function getLastModifAt(): ?\DateTimeImmutable
{
return $this->LastModifAt;
}
public function setLastModifAt(\DateTimeImmutable $LastModifAt): self
{
$this->LastModifAt = $LastModifAt;
return $this;
}
public function getContent(): ?string
{
return $this->content;
}
public function setContent(string $content): self
{
$this->content = $content;
return $this;
}
}