refs #723. Updated command entity with new fields

feature/actions
Manuel Aranda Rosales 2024-09-16 08:40:08 +02:00
parent 030d35f47e
commit 8d67ccd78a
6 changed files with 47 additions and 0 deletions

View File

View File

@ -0,0 +1,8 @@
<?php
namespace App\Dto\Input;
class CommandInput
{
}

View File

@ -0,0 +1,8 @@
<?php
namespace App\Dto\Output;
class CommandOutput
{
}

View File

@ -17,6 +17,9 @@ class Command extends AbstractEntity
#[ORM\Column(length: 255, nullable: true)]
private ?string $comments = null;
#[ORM\Column]
private ?bool $readOnly = null;
public function getId(): ?int
{
return $this->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;
}
}

View File

@ -0,0 +1,8 @@
<?php
namespace App\State\Processor;
class CommandProcessor
{
}

View File

@ -0,0 +1,8 @@
<?php
namespace App\State\Provider;
class CommandProvider
{
}