. */ namespace SP\DataModel; use SP\Domain\Common\Adapters\DataModelInterface; /** * Class ActionData * * @package SP\DataModel */ class ActionData implements DataModelInterface { public function __construct( private readonly int $id, private readonly string $name, private readonly string $text, private readonly string $route ) { } public function getId(): ?int { return $this->id; } public function getName(): ?string { return $this->name; } public function getText(): string { return $this->text; } public function getRoute(): string { return $this->route; } }