public function flattenedMappings(): array
    {
        $mappings = array();
        foreach ($this->_mappings as $mapping) {
            $idp = $mapping->issuerDomainPolicy();
            if (!isset($mappings[$idp])) {
                $mappings[$idp] = array();
            }
            array_push($mappings[$idp], $mapping->subjectDomainPolicy());
        }
        return $mappings;
    }
public function flattenedMappings(): array
    {
        $mappings = array();
        foreach ($this->_mappings as $mapping) {
            $idp = $mapping->issuerDomainPolicy();
            if (!isset($mappings[$idp])) {
                $mappings[$idp] = array();
            }
            array_push($mappings[$idp], $mapping->subjectDomainPolicy());
        }
        return $mappings;
    }
public function flattenedMappings ( ) : array { $ mappings = array ( ) ; foreach ( $ this -> _mappings as $ mapping ) { $ idp = $ mapping -> issuerDomainPolicy ( ) ; if ( ! isset ( $ mappings [ $ idp ] ) ) { $ mappings [ $ idp ] = array ( ) ; } array_push ( $ mappings [ $ idp ] , $ mapping -> subjectDomainPolicy ( ) ) ; } return $ mappings ; }
Get mappings flattened into a single array of arrays of subject domains
keyed by issuer domain.

Eg. if policy mappings contains multiple mappings with the same issuer
domain policy, their corresponding subject domain policies are placed
under the same key.

@return (string[])[]
Get mappings flattened into a single array of arrays of subject domains keyed by issuer domain .