All checks were successful
Auto Tag Develop / tag (push) Successful in 6s
Reviewed-on: #1 Co-authored-by: tristan <tristan@yuno.malio.fr> Co-committed-by: tristan <tristan@yuno.malio.fr>
73 lines
1.5 KiB
PHP
73 lines
1.5 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Entity;
|
|
|
|
use App\Repository\LogFileRepository;
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
use Symfony\Component\Serializer\Attribute\Groups;
|
|
|
|
#[ORM\Entity(repositoryClass: LogFileRepository::class)]
|
|
class LogFile
|
|
{
|
|
#[ORM\Id]
|
|
#[ORM\GeneratedValue]
|
|
#[ORM\Column]
|
|
#[Groups(['env:read', 'app:detail'])]
|
|
private ?int $id = null;
|
|
|
|
#[ORM\Column(length: 255)]
|
|
#[Groups(['env:read', 'env:write', 'app:detail'])]
|
|
private ?string $label = null;
|
|
|
|
#[ORM\Column(length: 255)]
|
|
#[Groups(['env:read', 'env:write', 'app:detail'])]
|
|
private ?string $path = null;
|
|
|
|
#[ORM\ManyToOne(targetEntity: Environment::class, inversedBy: 'logFiles')]
|
|
#[ORM\JoinColumn(nullable: false)]
|
|
private ?Environment $environment = null;
|
|
|
|
public function getId(): ?int
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
public function getLabel(): ?string
|
|
{
|
|
return $this->label;
|
|
}
|
|
|
|
public function setLabel(string $label): static
|
|
{
|
|
$this->label = $label;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getPath(): ?string
|
|
{
|
|
return $this->path;
|
|
}
|
|
|
|
public function setPath(string $path): static
|
|
{
|
|
$this->path = $path;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getEnvironment(): ?Environment
|
|
{
|
|
return $this->environment;
|
|
}
|
|
|
|
public function setEnvironment(?Environment $environment): static
|
|
{
|
|
$this->environment = $environment;
|
|
|
|
return $this;
|
|
}
|
|
}
|