$licence->
setLicenseKey($row['licenseKey'
]);
$licenseCheck =
isset($row['isLicenseCheckEnabled'
]) ?
$row['isLicenseCheckEnabled'
] : !
empty($row['licenseKey'
]);
$licence->
setIsLicenseCheckEnabled($licenseCheck);
$priceModel =
$this->
hydratePrices([$row['priceModel'
]]);
$licence->
setPriceModel(array_shift($priceModel));
$binary =
array_shift($row['plugin'
]['binaries'
]);
$licence->
setBinaryLink($binary['filePath'
]);
$licence->
setBinaryVersion($binary['version'
]);
$licences[] =
$licence;
} return $licences;
} /**
* @param array $data
*
* @return CategoryStruct
*/