29 lines
458 B
PHP
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']);
|
|
}
|
|
}
|