From 25ca2fb6cac44ec1124fb7a4413c5370f107185a Mon Sep 17 00:00:00 2001 From: tristan Date: Mon, 6 Apr 2026 13:30:01 +0200 Subject: [PATCH] feat : add LogFile entity Co-Authored-By: Claude Sonnet 4.6 --- src/Entity/LogFile.php | 72 ++++++++++++++++++++++++++++ src/Repository/LogFileRepository.php | 20 ++++++++ 2 files changed, 92 insertions(+) create mode 100644 src/Entity/LogFile.php create mode 100644 src/Repository/LogFileRepository.php diff --git a/src/Entity/LogFile.php b/src/Entity/LogFile.php new file mode 100644 index 0000000..2c03114 --- /dev/null +++ b/src/Entity/LogFile.php @@ -0,0 +1,72 @@ +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; + } +} diff --git a/src/Repository/LogFileRepository.php b/src/Repository/LogFileRepository.php new file mode 100644 index 0000000..7820419 --- /dev/null +++ b/src/Repository/LogFileRepository.php @@ -0,0 +1,20 @@ + + */ +class LogFileRepository extends ServiceEntityRepository +{ + public function __construct(ManagerRegistry $registry) + { + parent::__construct($registry, LogFile::class); + } +}