Files
piratepoet/mailpoet/lib/Automation/Engine/Data/NextStep.php
2022-09-12 14:40:36 -05:00

29 lines
458 B
PHP

<?php declare(strict_types = 1);
namespace MailPoet\Automation\Engine\Data;
class NextStep {
/** @var string */
protected $id;
public function __construct(
string $id
) {
$this->id = $id;
}
public function getId(): string {
return $this->id;
}
public function toArray(): array {
return [
'id' => $this->id,
];
}
public static function fromArray(array $data): self {
return new self($data['id']);
}
}