App\UIObjects\Settings\SettingsPermission::getGrant PHP Method

getGrant() protected method

protected getGrant ( $grant )
    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;
        }
    }