public function hasAnyPolicyMapping(): bool
    {
        foreach ($this->_mappings as $mapping) {
            if ($mapping->issuerDomainPolicy() ==
                 PolicyInformation::OID_ANY_POLICY) {
                return true;
            }
            if ($mapping->subjectDomainPolicy() ==
                 PolicyInformation::OID_ANY_POLICY) {
                return true;
            }
        }
        return false;
    }
public function hasAnyPolicyMapping(): bool
    {
        foreach ($this->_mappings as $mapping) {
            if ($mapping->issuerDomainPolicy() ==
                 PolicyInformation::OID_ANY_POLICY) {
                return true;
            }
            if ($mapping->subjectDomainPolicy() ==
                 PolicyInformation::OID_ANY_POLICY) {
                return true;
            }
        }
        return false;
    }
public function hasAnyPolicyMapping ( ) : bool { foreach ( $ this -> _mappings as $ mapping ) { if ( $ mapping -> issuerDomainPolicy ( ) == PolicyInformation :: OID_ANY_POLICY ) { return true ; } if ( $ mapping -> subjectDomainPolicy ( ) == PolicyInformation :: OID_ANY_POLICY ) { return true ; } } return false ; }
Check whether policy mappings have anyPolicy mapped.

RFC 5280 section 4.2.1.5 states that "Policies MUST NOT be mapped either
to or from the special value anyPolicy".

@return bool
Check whether policy mappings have anyPolicy mapped .