Make name a property of Step.args instead of Step
[MAILPOET-4445]
This commit is contained in:
@ -9,9 +9,6 @@ class Step {
|
||||
/** @var string */
|
||||
private $id;
|
||||
|
||||
/** @var ?string */
|
||||
private $name;
|
||||
|
||||
/** @var string */
|
||||
private $type;
|
||||
|
||||
@ -26,14 +23,12 @@ class Step {
|
||||
|
||||
public function __construct(
|
||||
string $id,
|
||||
?string $name,
|
||||
string $type,
|
||||
string $key,
|
||||
?string $nextStepId = null,
|
||||
array $args = []
|
||||
) {
|
||||
$this->id = $id;
|
||||
$this->name = $name;
|
||||
$this->type = $type;
|
||||
$this->key = $key;
|
||||
$this->nextStepId = $nextStepId;
|
||||
@ -44,10 +39,6 @@ class Step {
|
||||
return $this->id;
|
||||
}
|
||||
|
||||
public function getName(): ?string {
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
public function getType(): string {
|
||||
return $this->type;
|
||||
}
|
||||
@ -71,7 +62,6 @@ class Step {
|
||||
public function toArray(): array {
|
||||
return [
|
||||
'id' => $this->id,
|
||||
'name' => $this->name,
|
||||
'type' => $this->type,
|
||||
'key' => $this->key,
|
||||
'next_step_id' => $this->nextStepId,
|
||||
|
Reference in New Issue
Block a user