|
|
|
@ -14,6 +14,12 @@ class Torrent
@@ -14,6 +14,12 @@ class Torrent
|
|
|
|
|
#[ORM\Column] |
|
|
|
|
private ?int $id = null; |
|
|
|
|
|
|
|
|
|
#[ORM\Column] |
|
|
|
|
private ?int $userId = null; |
|
|
|
|
|
|
|
|
|
#[ORM\Column] |
|
|
|
|
private ?int $added = null; |
|
|
|
|
|
|
|
|
|
#[ORM\Column(length: 255)] |
|
|
|
|
private ?string $filename = null; |
|
|
|
|
|
|
|
|
@ -41,6 +47,30 @@ class Torrent
@@ -41,6 +47,30 @@ class Torrent
|
|
|
|
|
return $this; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public function getUserId(): ?int |
|
|
|
|
{ |
|
|
|
|
return $this->userId; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public function setUserId(int $userId): static |
|
|
|
|
{ |
|
|
|
|
$this->userId = $userId; |
|
|
|
|
|
|
|
|
|
return $this; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public function getAdded(): ?int |
|
|
|
|
{ |
|
|
|
|
return $this->added; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public function setAdded(int $added): static |
|
|
|
|
{ |
|
|
|
|
$this->added = $added; |
|
|
|
|
|
|
|
|
|
return $this; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public function getFilename(): ?string |
|
|
|
|
{ |
|
|
|
|
return $this->filename; |
|
|
|
|