return 0;
} $result = null;
/** @var LicenceStruct $licence */
foreach ($licences as $licence) { $result[] =
[ 'technicalName' =>
$licence->
getTechnicalName(),
'label' =>
$licence->
getLabel(),
'domain' =>
$licence->
getShop(),
'createDate' =>
$licence->
getCreationDate()->
format('Y-m-d'
),
'type' =>
$licence->
getPriceModel()->
getType(),
];
} $table =
new Table($output);
$table->
setHeaders(['Technical name', 'Description', 'domain', 'Creation date', 'Type'
]) ->
setRows($result);
$table->
render();
return 0;
}