protected function getGrant($grant)
{
$defaultGrant = [Grant::RATING_TYPE => '', Grant::GROUP_TYPE => [], Grant::USER_TYPE => [], Grant::EXCEPT_TYPE => []];
if ($grant !== null) {
return array_merge($defaultGrant, $grant);
} else {
return $defaultGrant;
}
}