/**
* Merges the identities
*
* @param mixed $identities An integer or array of integers representing the identities to check.
*
* @return void
*
* @since 1.7.0
*/
public function mergeIdentities($identities)
{
if ($identities instanceof Rule) {
$identities = $identities->getData();
}
if (\is_array($identities)) {
foreach ($identities as $identity => $allow) {
$this->mergeIdentity($identity, $allow);
}
}
}