<?php
namespace App\Entity;
use App\Repository\CertificationRepository;
use Symfony\Component\Serializer\Annotation\Groups;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: CertificationRepository::class)]
class Certification
{
#[Groups(['LogService'])]
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[Groups(['LogService'])]
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $title;
#[Groups(['LogService'])]
#[ORM\Column(type: 'text', nullable: true)]
private $fileName;
#[Groups(['LogService'])]
#[ORM\Column(type: 'integer', nullable: true)]
private $fileSize;
#[Groups(['LogService'])]
#[ORM\Column(type: 'datetime')]
private $createdAt;
#[Groups(['LogService'])]
#[ORM\Column(type: 'string', length: 64, nullable: true)]
private $fileType;
#[ORM\ManyToOne(targetEntity: User::class, inversedBy: 'certifications')]
#[ORM\JoinColumn(nullable: false)]
private $user;
public function getId(): ?int
{
return $this->id;
}
public function getTitle(): ?string
{
return $this->title;
}
public function setTitle(?string $title): self
{
$this->title = $title;
return $this;
}
public function getFileName(): ?string
{
return $this->fileName;
}
public function setFileName(?string $fileName): self
{
$this->fileName = $fileName;
return $this;
}
public function getFileSize(): ?int
{
return $this->fileSize;
}
public function setFileSize(?int $fileSize): self
{
$this->fileSize = $fileSize;
return $this;
}
public function getCreatedAt(): ?\DateTimeInterface
{
return $this->createdAt;
}
public function setCreatedAt(\DateTimeInterface $createdAt): self
{
$this->createdAt = $createdAt;
return $this;
}
public function getFileType(): ?string
{
return $this->fileType;
}
public function setFileType(?string $fileType): self
{
$this->fileType = $fileType;
return $this;
}
public function getUser(): ?User
{
return $this->user;
}
public function setUser(?User $user): self
{
$this->user = $user;
return $this;
}
}