<?php
namespace App\Entity;
use App\Repository\BattleCommentLikeRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: BattleCommentLikeRepository::class)]
class BattleCommentLike
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column]
private ?\DateTime $likedAt = null;
#[ORM\ManyToOne(inversedBy: 'likes')]
private ?BattleComment $battleComment = null;
#[ORM\ManyToOne(inversedBy: 'battleCommentLikes')]
private ?Client $likedBy = null;
public function getId(): ?int
{
return $this->id;
}
public function getLikedAt(): ?\DateTime
{
return $this->likedAt;
}
public function setLikedAt(\DateTime $likedAt): static
{
$this->likedAt = $likedAt;
return $this;
}
public function getBattleComment(): ?BattleComment
{
return $this->battleComment;
}
public function setBattleComment(?BattleComment $battleComment): static
{
$this->battleComment = $battleComment;
return $this;
}
public function getLikedBy(): ?Client
{
return $this->likedBy;
}
public function setLikedBy(?Client $likedBy): static
{
$this->likedBy = $likedBy;
return $this;
}
}