From b4f9f1e9bb29031782df01027758a0c1e7cae54e Mon Sep 17 00:00:00 2001 From: Manuel Aranda Date: Tue, 17 Sep 2024 10:37:20 +0200 Subject: [PATCH] refs #723. Added new entity Trace --- src/Entity/Trace.php | 103 +++++++++++++++++++++++++++++ src/Repository/TraceRepository.php | 19 ++++++ 2 files changed, 122 insertions(+) create mode 100644 src/Entity/Trace.php create mode 100644 src/Repository/TraceRepository.php diff --git a/src/Entity/Trace.php b/src/Entity/Trace.php new file mode 100644 index 0000000..2010979 --- /dev/null +++ b/src/Entity/Trace.php @@ -0,0 +1,103 @@ +client; + } + + public function setClient(?Client $client): static + { + $this->client = $client; + + return $this; + } + + public function getCommand(): ?Command + { + return $this->command; + } + + public function setCommand(?Command $command): static + { + $this->command = $command; + + return $this; + } + + public function getStatus(): ?string + { + return $this->status; + } + + public function setStatus(string $status): static + { + $this->status = $status; + + return $this; + } + + public function getOutput(): ?string + { + return $this->output; + } + + public function setOutput(?string $output): static + { + $this->output = $output; + + return $this; + } + + public function getExecutedAt(): ?\DateTimeImmutable + { + return $this->executedAt; + } + + public function setExecutedAt(\DateTimeImmutable $executedAt): static + { + $this->executedAt = $executedAt; + + return $this; + } + + public function getFinishedAt(): ?\DateTimeImmutable + { + return $this->finishedAt; + } + + public function setFinishedAt(\DateTimeImmutable $finishedAt): static + { + $this->finishedAt = $finishedAt; + + return $this; + } +} diff --git a/src/Repository/TraceRepository.php b/src/Repository/TraceRepository.php new file mode 100644 index 0000000..102fa7b --- /dev/null +++ b/src/Repository/TraceRepository.php @@ -0,0 +1,19 @@ + + */ +class TraceRepository extends AbstractRepository +{ + public function __construct(ManagerRegistry $registry) + { + parent::__construct($registry, Trace::class); + } + +}