. */ namespace SP\DataModel; use SP\Domain\Common\Models\ItemWithIdAndNameModel; /** * Class ActionData * * @package SP\DataModel */ class Action implements ItemWithIdAndNameModel { 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; } }