src/Entity/Certification.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CertificationRepository;
  4. use Symfony\Component\Serializer\Annotation\Groups;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassCertificationRepository::class)]
  7. class Certification
  8. {
  9.     #[Groups(['LogService'])]
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column(type'integer')]
  13.     private $id;
  14.     #[Groups(['LogService'])]
  15.     #[ORM\Column(type'string'length255nullabletrue)]
  16.     private $title;
  17.     #[Groups(['LogService'])]
  18.     #[ORM\Column(type'text'nullabletrue)]
  19.     private $fileName;
  20.     #[Groups(['LogService'])]
  21.     #[ORM\Column(type'integer'nullabletrue)]
  22.     private $fileSize;
  23.     #[Groups(['LogService'])]
  24.     #[ORM\Column(type'datetime')]
  25.     private $createdAt;
  26.     #[Groups(['LogService'])]
  27.     #[ORM\Column(type'string'length64nullabletrue)]
  28.     private $fileType;
  29.     #[ORM\ManyToOne(targetEntityUser::class, inversedBy'certifications')]
  30.     #[ORM\JoinColumn(nullablefalse)]
  31.     private $user;
  32.     public function getId(): ?int
  33.     {
  34.         return $this->id;
  35.     }
  36.     public function getTitle(): ?string
  37.     {
  38.         return $this->title;
  39.     }
  40.     public function setTitle(?string $title): self
  41.     {
  42.         $this->title $title;
  43.         return $this;
  44.     }
  45.     public function getFileName(): ?string
  46.     {
  47.         return $this->fileName;
  48.     }
  49.     public function setFileName(?string $fileName): self
  50.     {
  51.         $this->fileName $fileName;
  52.         return $this;
  53.     }
  54.     public function getFileSize(): ?int
  55.     {
  56.         return $this->fileSize;
  57.     }
  58.     public function setFileSize(?int $fileSize): self
  59.     {
  60.         $this->fileSize $fileSize;
  61.         return $this;
  62.     }
  63.     public function getCreatedAt(): ?\DateTimeInterface
  64.     {
  65.         return $this->createdAt;
  66.     }
  67.     public function setCreatedAt(\DateTimeInterface $createdAt): self
  68.     {
  69.         $this->createdAt $createdAt;
  70.         return $this;
  71.     }
  72.     public function getFileType(): ?string
  73.     {
  74.         return $this->fileType;
  75.     }
  76.     public function setFileType(?string $fileType): self
  77.     {
  78.         $this->fileType $fileType;
  79.         return $this;
  80.     }
  81.     public function getUser(): ?User
  82.     {
  83.         return $this->user;
  84.     }
  85.     public function setUser(?User $user): self
  86.     {
  87.         $this->user $user;
  88.         return $this;
  89.     }
  90. }