From 8d67ccd78a555d5d8049794157a63e265816259c Mon Sep 17 00:00:00 2001 From: Manuel Aranda Date: Mon, 16 Sep 2024 08:40:08 +0200 Subject: [PATCH] refs #723. Updated command entity with new fields --- config/api_platform/Command.yaml | 0 src/Dto/Input/CommandInput.php | 8 ++++++++ src/Dto/Output/CommandOutput.php | 8 ++++++++ src/Entity/Command.php | 15 +++++++++++++++ src/State/Processor/CommandProcessor.php | 8 ++++++++ src/State/Provider/CommandProvider.php | 8 ++++++++ 6 files changed, 47 insertions(+) create mode 100644 config/api_platform/Command.yaml create mode 100644 src/Dto/Input/CommandInput.php create mode 100644 src/Dto/Output/CommandOutput.php create mode 100644 src/State/Processor/CommandProcessor.php create mode 100644 src/State/Provider/CommandProvider.php diff --git a/config/api_platform/Command.yaml b/config/api_platform/Command.yaml new file mode 100644 index 0000000..e69de29 diff --git a/src/Dto/Input/CommandInput.php b/src/Dto/Input/CommandInput.php new file mode 100644 index 0000000..03d64f2 --- /dev/null +++ b/src/Dto/Input/CommandInput.php @@ -0,0 +1,8 @@ +id; @@ -45,4 +48,16 @@ class Command extends AbstractEntity return $this; } + + public function isReadOnly(): ?bool + { + return $this->readOnly; + } + + public function setReadOnly(bool $readOnly): static + { + $this->readOnly = $readOnly; + + return $this; + } } diff --git a/src/State/Processor/CommandProcessor.php b/src/State/Processor/CommandProcessor.php new file mode 100644 index 0000000..355a27b --- /dev/null +++ b/src/State/Processor/CommandProcessor.php @@ -0,0 +1,8 @@ +