diff --git a/src/Entity/Page.php b/src/Entity/Page.php index cb5f2c9..7b5764b 100644 --- a/src/Entity/Page.php +++ b/src/Entity/Page.php @@ -31,6 +31,9 @@ class Page #[ORM\Column] private ?int $added = null; + #[ORM\Column] + private ?bool $approved = null; + public function getUserId(): ?int { return $this->userId; @@ -54,4 +57,16 @@ class Page return $this; } + + public function isApproved(): ?bool + { + return $this->approved; + } + + public function setApproved(bool $approved): static + { + $this->approved = $approved; + + return $this; + } } diff --git a/src/Entity/Torrent.php b/src/Entity/Torrent.php index e331f7a..eac2144 100644 --- a/src/Entity/Torrent.php +++ b/src/Entity/Torrent.php @@ -20,8 +20,8 @@ class Torrent #[ORM\Column] private ?int $added = null; - #[ORM\Column(length: 255)] - private ?string $filename = null; + #[ORM\Column] + private ?bool $approved = null; #[ORM\Column(type: Types::TEXT, nullable: true)] private ?string $keywords = null; @@ -71,18 +71,6 @@ class Torrent 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; @@ -95,6 +83,18 @@ class Torrent return $this; } + public function isApproved(): ?bool + { + return $this->approved; + } + + public function setApproved(bool $approved): static + { + $this->approved = $approved; + + return $this; + } + public function getSeeders(): ?int { return $this->seeders;