private function isCombinable( PropertyGroupOptionEntity
$option,
array
$current,
AvailableCombinationResult
$combinations ): ?bool
{ unset($current[$option->
getGroupId()]);
$current[] =
$option->
getId();
// available with all other current selected options
if ($combinations->
hasCombination($current) &&
$combinations->
isAvailable($current)) { return true;
} // available but not with the other current selected options
if ($combinations->
hasOptionId($option->
getId())) { return false;
} return null;
}