src/Entity/Log.php line 11
<?phpnamespace App\Entity;use App\Repository\LogRepository;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;use Gedmo\Mapping\Annotation as Gedmo;#[ORM\Entity(repositoryClass: LogRepository::class)]class Log{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column(type: 'integer')]private $id;#[Gedmo\Timestampable(on: 'create')]#[ORM\Column(type: 'datetime_immutable')]private $createdAt;#[ORM\Column(type: 'integer', nullable: true)]private $userId;#[ORM\Column(type: 'boolean')]private bool $isPublic = false;#[ORM\Column(type: 'string', length: 255)]private int $type = 0;#[ORM\Column(type: 'text', nullable: true)]private $content;#[ORM\Column(type: 'integer', nullable: true)]private ?int $entityId = 10;#[ORM\Column(type: 'string', length: 255, nullable: true)]private ?string $entityType = "";#[ORM\Column(type: 'array', nullable: true)]private $viewedBy = [];public function getId(): ?int{return $this->id;}public function getCreatedAt(): ?\DateTimeImmutable{return $this->createdAt;}public function setCreatedAt(\DateTimeImmutable $createdAt): self{$this->createdAt = $createdAt;return $this;}public function getUserId(): ?int{return $this->userId;}public function setUserId(?int $userId): self{$this->userId = $userId;return $this;}public function isIsPublic(): ?bool{return $this->isPublic;}public function setIsPublic(bool $isPublic): self{$this->isPublic = $isPublic;return $this;}public function getType(): ?string{return $this->type;}public function setType(string $type): self{$this->type = $type;return $this;}public function getContent(): ?string{return $this->content;}public function setContent(?string $content): self{$this->content = $content;return $this;}public function getEntityId(): ?int{return $this->entityId;}public function setEntityId(?int $entityId): self{$this->entityId = $entityId;return $this;}public function getEntityType(): ?string{return $this->entityType;}public function setEntityType(?string $entityType): self{$this->entityType = $entityType;return $this;}public function getViewedBy(): array{return $this->viewedBy;}public function setViewedBy(?array $viewedBy): self{$this->viewedBy = $viewedBy;return $this;}}