152 lines
3.2 KiB
PHP
152 lines
3.2 KiB
PHP
<?php
|
|
|
|
namespace App\Entity;
|
|
|
|
use App\Repository\OgLiveRepository;
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
|
|
|
|
#[ORM\Entity(repositoryClass: OgLiveRepository::class)]
|
|
#[ORM\UniqueConstraint(name: 'UNIQ_IDENTIFIER_NAME', fields: ['name'])]
|
|
#[UniqueEntity(fields: ['name'], message: 'validators.og_live.name.unique')]
|
|
class OgLive extends AbstractEntity
|
|
{
|
|
use NameableTrait;
|
|
use SynchronizedTrait;
|
|
|
|
#[ORM\Column(length: 255, nullable: true)]
|
|
private ?string $downloadUrl = null;
|
|
|
|
#[ORM\Column(length: 255, nullable: true)]
|
|
private ?string $checksum = null;
|
|
|
|
#[ORM\Column(length: 255, nullable: true)]
|
|
private ?string $distribution = null;
|
|
|
|
#[ORM\Column(length: 255, nullable: true)]
|
|
private ?string $kernel = null;
|
|
|
|
#[ORM\Column(length: 255, nullable: true)]
|
|
private ?string $architecture = null;
|
|
|
|
#[ORM\Column(length: 255, nullable: true)]
|
|
private ?string $revision = null;
|
|
|
|
#[ORM\Column(length: 255, nullable: true)]
|
|
private ?string $directory = null;
|
|
|
|
#[ORM\Column(length: 255, nullable: true)]
|
|
private ?string $filename = null;
|
|
|
|
#[ORM\Column(nullable: true)]
|
|
private ?bool $installed = null;
|
|
|
|
public function getDownloadUrl(): ?string
|
|
{
|
|
return $this->downloadUrl;
|
|
}
|
|
|
|
public function setDownloadUrl(?string $downloadUrl): static
|
|
{
|
|
$this->downloadUrl = $downloadUrl;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getChecksum(): ?string
|
|
{
|
|
return $this->checksum;
|
|
}
|
|
|
|
public function setChecksum(?string $checksum): static
|
|
{
|
|
$this->checksum = $checksum;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getDistribution(): ?string
|
|
{
|
|
return $this->distribution;
|
|
}
|
|
|
|
public function setDistribution(?string $distribution): static
|
|
{
|
|
$this->distribution = $distribution;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getKernel(): ?string
|
|
{
|
|
return $this->kernel;
|
|
}
|
|
|
|
public function setKernel(?string $kernel): static
|
|
{
|
|
$this->kernel = $kernel;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getArchitecture(): ?string
|
|
{
|
|
return $this->architecture;
|
|
}
|
|
|
|
public function setArchitecture(?string $architecture): static
|
|
{
|
|
$this->architecture = $architecture;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getRevision(): ?string
|
|
{
|
|
return $this->revision;
|
|
}
|
|
|
|
public function setRevision(?string $revision): static
|
|
{
|
|
$this->revision = $revision;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getDirectory(): ?string
|
|
{
|
|
return $this->directory;
|
|
}
|
|
|
|
public function setDirectory(?string $directory): static
|
|
{
|
|
$this->directory = $directory;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getFilename(): ?string
|
|
{
|
|
return $this->filename;
|
|
}
|
|
|
|
public function setFilename(?string $filename): static
|
|
{
|
|
$this->filename = $filename;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function isInstalled(): ?bool
|
|
{
|
|
return $this->installed;
|
|
}
|
|
|
|
public function setInstalled(?bool $installed): static
|
|
{
|
|
$this->installed = $installed;
|
|
|
|
return $this;
|
|
}
|
|
}
|