mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2026-04-02 01:55:31 +00:00
implement torrent statuses management #28
This commit is contained in:
parent
3cbc6ea90f
commit
989f2f3311
64 changed files with 1051 additions and 282 deletions
|
|
@ -33,6 +33,9 @@ class Torrent
|
|||
#[ORM\Column]
|
||||
private ?bool $approved = null;
|
||||
|
||||
#[ORM\Column]
|
||||
private ?bool $status = null;
|
||||
|
||||
#[ORM\Column(length: 32)]
|
||||
private ?string $md5file = null;
|
||||
|
||||
|
|
@ -156,6 +159,18 @@ class Torrent
|
|||
return $this;
|
||||
}
|
||||
|
||||
public function isStatus(): ?bool
|
||||
{
|
||||
return $this->status;
|
||||
}
|
||||
|
||||
public function setStatus(bool $status): static
|
||||
{
|
||||
$this->status = $status;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getSeeders(): ?int
|
||||
{
|
||||
return $this->seeders;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue