/** @var UpdateResultStruct $updates */
$updates =
$service->
getUpdates($request);
$plugins =
$updates->
getPlugins();
$result =
[];
foreach ($plugins as $plugin) { $result[] =
[ $plugin->
getId(),
$plugin->
getTechnicalName(),
$plugin->
getLabel(),
$plugin->
getVersion(),
$plugin->
getAvailableVersion(),
];
} $table =
new Table($output);
$table->
setHeaders(['Id', 'Technical name', 'Label', 'CurrentVersion', 'AvailableVersion'
]) ->
setRows($result);
$table->
render();
return 0;
}}