<?phpnamespace App\Entity;use App\Repository\PushSubscriptionRepository;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=PushSubscriptionRepository::class) */class PushSubscription{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\ManyToOne(targetEntity=User::class, inversedBy="pushSubscriptions") * @ORM\JoinColumn(nullable=false) */ private $user; /** * @ORM\Column(type="text") */ private $endpoint; /** * @ORM\Column(type="text") */ private $p256dh; /** * @ORM\Column(type="text") */ private $auth; /** * @ORM\Column(type="string", length=255) */ private $content_encoding; /** * @ORM\Column(type="datetime") */ private $created_at; /** * @ORM\Column(type="datetime", nullable=true) */ private $last_used_at; public function getId(): ?int { return $this->id; } public function getUser(): ?User { return $this->user; } public function setUser(?User $user): self { $this->user = $user; return $this; } public function getEndpoint(): ?string { return $this->endpoint; } public function setEndpoint(string $endpoint): self { $this->endpoint = $endpoint; return $this; } public function getP256dh(): ?string { return $this->p256dh; } public function setP256dh(string $p256dh): self { $this->p256dh = $p256dh; return $this; } public function getAuth(): ?string { return $this->auth; } public function setAuth(string $auth): self { $this->auth = $auth; return $this; } public function getContentEncoding(): ?string { return $this->content_encoding; } public function setContentEncoding(string $content_encoding): self { $this->content_encoding = $content_encoding; return $this; } public function getCreatedAt(): ?\DateTimeInterface { return $this->created_at; } public function setCreatedAt(\DateTimeInterface $created_at): self { $this->created_at = $created_at; return $this; } public function getLastUsedAt(): ?\DateTimeInterface { return $this->last_used_at; } public function setLastUsedAt(?\DateTimeInterface $last_used_at): self { $this->last_used_at = $last_used_at; return $this; }}