src/Entity/Platforma/DownloadHistory.php line 9
<?phpnamespace App\Entity\Platforma;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity]#[ORM\Table(name: 'plat_download_history')]class DownloadHistory{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column(type: 'integer')]private ?int $id = null;#[ORM\Column(name: 'user_id', type: 'integer')]private int $userId;#[ORM\Column(type: 'datetime_immutable', options: ['default' => 'CURRENT_TIMESTAMP'])]private \DateTimeImmutable $date;#[ORM\Column(type: 'string', length: 128)]private string $file;#[ORM\Column(name: 'id_szk', type: 'integer', nullable: true)]private ?int $idSzk = null;public function __construct(){$this->date = new \DateTimeImmutable();}// --- Gettery i Settery ---public function getId(): ?int{return $this->id;}public function getUserId(): int{return $this->userId;}public function setUserId(int $userId): self{$this->userId = $userId;return $this;}public function getDate(): \DateTimeImmutable{return $this->date;}public function setDate(\DateTimeImmutable $date): self{$this->date = $date;return $this;}public function getFile(): string{return $this->file;}public function setFile(string $file): self{$this->file = $file;return $this;}public function getIdSzk(): ?int{return $this->idSzk;}public function setIdSzk(?int $idSzk): self{$this->idSzk = $idSzk;return $this;}}