mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2026-03-31 17:15:38 +00:00
103 lines
1.8 KiB
PHP
103 lines
1.8 KiB
PHP
<?php
|
|
|
|
namespace App\Entity;
|
|
|
|
use App\Repository\TorrentLocalesRepository;
|
|
use Doctrine\DBAL\Types\Types;
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
|
|
#[ORM\Entity(repositoryClass: TorrentLocalesRepository::class)]
|
|
class TorrentLocales
|
|
{
|
|
#[ORM\Id]
|
|
#[ORM\GeneratedValue]
|
|
#[ORM\Column]
|
|
private ?int $id = null;
|
|
|
|
#[ORM\Column]
|
|
private ?int $torrentId = null;
|
|
|
|
#[ORM\Column]
|
|
private ?int $userId = null;
|
|
|
|
#[ORM\Column]
|
|
private ?int $added = null;
|
|
|
|
#[ORM\Column(type: Types::SIMPLE_ARRAY)]
|
|
private array $value = [];
|
|
|
|
#[ORM\Column]
|
|
private ?bool $approved = null;
|
|
|
|
public function getId(): ?int
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
public function setId(string $id): static
|
|
{
|
|
$this->id = $id;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getTorrentId(): ?int
|
|
{
|
|
return $this->torrentId;
|
|
}
|
|
|
|
public function setTorrentId(int $torrentId): static
|
|
{
|
|
$this->torrentId = $torrentId;
|
|
|
|
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 getValue(): array
|
|
{
|
|
return $this->value;
|
|
}
|
|
|
|
public function setValue(array $value): static
|
|
{
|
|
$this->value = $value;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function isApproved(): ?bool
|
|
{
|
|
return $this->approved;
|
|
}
|
|
|
|
public function setApproved(bool $approved): static
|
|
{
|
|
$this->approved = $approved;
|
|
|
|
return $this;
|
|
}
|
|
}
|