original_string: public function matchFull($permissions, array $authzGroups)
      {
          $privileges = [];
  
          foreach ($permissions as $permissionAuthzGroup => $permissionPrivileges) {
              $matchingAuthzGroup = $this->getMatchingAuthzGroup($permissionAuthzGroup, $authzGroups);
              
              if (!$matchingAuthzGroup) {
                  continue;
              }
              
              $privileges = $this->addAuthzGroupsToPrivileges($privileges, $permissionPrivileges, [
                  $permissionAuthzGroup, $matchingAuthzGroup
              ]);
          }
  
          return $privileges;
      }
code: public function matchFull($permissions, array $authzGroups)
      {
          $privileges = [];
  
          foreach ($permissions as $permissionAuthzGroup => $permissionPrivileges) {
              $matchingAuthzGroup = $this->getMatchingAuthzGroup($permissionAuthzGroup, $authzGroups);
              
              if (!$matchingAuthzGroup) {
                  continue;
              }
              
              $privileges = $this->addAuthzGroupsToPrivileges($privileges, $permissionPrivileges, [
                  $permissionAuthzGroup, $matchingAuthzGroup
              ]);
          }
  
          return $privileges;
      }
code_tokens: public function matchFull ( $ permissions , array $ authzGroups ) { $ privileges = [ ] ; foreach ( $ permissions as $ permissionAuthzGroup => $ permissionPrivileges ) { $ matchingAuthzGroup = $ this -> getMatchingAuthzGroup ( $ permissionAuthzGroup , $ authzGroups ) ; if ( ! $ matchingAuthzGroup ) { continue ; } $ privileges = $ this -> addAuthzGroupsToPrivileges ( $ privileges , $ permissionPrivileges , [ $ permissionAuthzGroup , $ matchingAuthzGroup ] ) ; } return $ privileges ; }
docstring: Get a list of privileges for matching authz groups containing more information
  Returns an array of objects where the privilege is the key and authzgroups the value
  
  @param array|object $permissions
  @param array        $authzGroups
  @return array
docstring_tokens: Get a list of privileges for matching authz groups containing more information Returns an array of objects where the privilege is the key and authzgroups the value