add approved fields

This commit is contained in:
ghost 2023-10-08 02:05:14 +03:00
parent 23b74a800a
commit 57085f8167
2 changed files with 29 additions and 14 deletions

View File

@ -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;
}
} }

View File

@ -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;