public function hasNamedGroupingPolicy($ptype, ...$params)
    {
        if (1 == count($params) && is_array($params[0])) {
            $strSlice = $params[0];

            return $this->model->hasPolicy('g', $ptype, $strSlice);
        }

        $policy = [];
        foreach ($params as $param) {
            $policy[] = $param;
        }

        return $this->model->hasPolicy('g', $ptype, $policy);
    }
public function hasNamedGroupingPolicy($ptype, ...$params)
    {
        if (1 == count($params) && is_array($params[0])) {
            $strSlice = $params[0];

            return $this->model->hasPolicy('g', $ptype, $strSlice);
        }

        $policy = [];
        foreach ($params as $param) {
            $policy[] = $param;
        }

        return $this->model->hasPolicy('g', $ptype, $policy);
    }
public function hasNamedGroupingPolicy ( $ ptype , ... $ params ) { if ( 1 == count ( $ params ) && is_array ( $ params [ 0 ] ) ) { $ strSlice = $ params [ 0 ] ; return $ this -> model -> hasPolicy ( 'g' , $ ptype , $ strSlice ) ; } $ policy = [ ] ; foreach ( $ params as $ param ) { $ policy [ ] = $ param ; } return $ this -> model -> hasPolicy ( 'g' , $ ptype , $ policy ) ; }
determines whether a named role inheritance rule exists.

@param $ptype
@param mixed ...$params

@return bool
determines whether a named role inheritance rule exists .