mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2025-01-09 22:47:58 +00:00
add approved fields
This commit is contained in:
parent
23b74a800a
commit
57085f8167
@ -31,6 +31,9 @@ class Page
|
|||||||
#[ORM\Column]
|
#[ORM\Column]
|
||||||
private ?int $added = null;
|
private ?int $added = null;
|
||||||
|
|
||||||
|
#[ORM\Column]
|
||||||
|
private ?bool $approved = null;
|
||||||
|
|
||||||
public function getUserId(): ?int
|
public function getUserId(): ?int
|
||||||
{
|
{
|
||||||
return $this->userId;
|
return $this->userId;
|
||||||
@ -54,4 +57,16 @@ class Page
|
|||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function isApproved(): ?bool
|
||||||
|
{
|
||||||
|
return $this->approved;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function setApproved(bool $approved): static
|
||||||
|
{
|
||||||
|
$this->approved = $approved;
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -20,8 +20,8 @@ class Torrent
|
|||||||
#[ORM\Column]
|
#[ORM\Column]
|
||||||
private ?int $added = null;
|
private ?int $added = null;
|
||||||
|
|
||||||
#[ORM\Column(length: 255)]
|
#[ORM\Column]
|
||||||
private ?string $filename = null;
|
private ?bool $approved = null;
|
||||||
|
|
||||||
#[ORM\Column(type: Types::TEXT, nullable: true)]
|
#[ORM\Column(type: Types::TEXT, nullable: true)]
|
||||||
private ?string $keywords = null;
|
private ?string $keywords = null;
|
||||||
@ -71,18 +71,6 @@ class Torrent
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getFilename(): ?string
|
|
||||||
{
|
|
||||||
return $this->filename;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setFilename(string $filename): static
|
|
||||||
{
|
|
||||||
$this->filename = $filename;
|
|
||||||
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getKeywords(): ?string
|
public function getKeywords(): ?string
|
||||||
{
|
{
|
||||||
return $this->keywords;
|
return $this->keywords;
|
||||||
@ -95,6 +83,18 @@ class Torrent
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function isApproved(): ?bool
|
||||||
|
{
|
||||||
|
return $this->approved;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function setApproved(bool $approved): static
|
||||||
|
{
|
||||||
|
$this->approved = $approved;
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
public function getSeeders(): ?int
|
public function getSeeders(): ?int
|
||||||
{
|
{
|
||||||
return $this->seeders;
|
return $this->seeders;
|
||||||
|
Loading…
Reference in New Issue
Block a user