mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2026-04-02 01:55:31 +00:00
draft torrent submit form #11
This commit is contained in:
parent
b1fe274ae8
commit
8df29ef605
12 changed files with 810 additions and 6 deletions
103
src/Entity/Torrent.php
Normal file
103
src/Entity/Torrent.php
Normal file
|
|
@ -0,0 +1,103 @@
|
|||
<?php
|
||||
|
||||
namespace App\Entity;
|
||||
|
||||
use App\Repository\TorrentRepository;
|
||||
use Doctrine\DBAL\Types\Types;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
|
||||
#[ORM\Entity(repositoryClass: TorrentRepository::class)]
|
||||
class Torrent
|
||||
{
|
||||
#[ORM\Id]
|
||||
#[ORM\GeneratedValue]
|
||||
#[ORM\Column]
|
||||
private ?int $id = null;
|
||||
|
||||
#[ORM\Column(length: 255)]
|
||||
private ?string $filename = null;
|
||||
|
||||
#[ORM\Column(type: Types::TEXT, nullable: true)]
|
||||
private ?string $keywords = null;
|
||||
|
||||
#[ORM\Column(nullable: true)]
|
||||
private ?int $seeders = null;
|
||||
|
||||
#[ORM\Column(nullable: true)]
|
||||
private ?int $peers = null;
|
||||
|
||||
#[ORM\Column(nullable: true)]
|
||||
private ?int $leechers = null;
|
||||
|
||||
public function getId(): ?int
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
|
||||
public function setId(string $id): static
|
||||
{
|
||||
$this->id = $id;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getFilename(): ?string
|
||||
{
|
||||
return $this->filename;
|
||||
}
|
||||
|
||||
public function setFilename(string $filename): static
|
||||
{
|
||||
$this->filename = $filename;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getKeywords(): ?string
|
||||
{
|
||||
return $this->keywords;
|
||||
}
|
||||
|
||||
public function setKeywords(?string $keywords): static
|
||||
{
|
||||
$this->keywords = $keywords;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getSeeders(): ?int
|
||||
{
|
||||
return $this->seeders;
|
||||
}
|
||||
|
||||
public function setSeeders(?int $seeders): static
|
||||
{
|
||||
$this->seeders = $seeders;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getPeers(): ?int
|
||||
{
|
||||
return $this->peers;
|
||||
}
|
||||
|
||||
public function setPeers(?int $peers): static
|
||||
{
|
||||
$this->peers = $peers;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getLeechers(): ?int
|
||||
{
|
||||
return $this->leechers;
|
||||
}
|
||||
|
||||
public function setLeechers(?int $leechers): static
|
||||
{
|
||||
$this->leechers = $leechers;
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue