public function setNameIdPolicy(array $nameIdPolicy) : void
    {
        if (isset($nameIdPolicy['Format']) && !is_string($nameIdPolicy['Format'])) {
            throw InvalidArgumentException::invalidType('string', $nameIdPolicy['Format']);
        }
        if (isset($nameIdPolicy['SPNameQualifier']) && !is_string($nameIdPolicy['SPNameQualifier'])) {
            throw InvalidArgumentException::invalidType('string', $nameIdPolicy['SPNameQualifier']);
        }
        if (isset($nameIdPolicy['AllowCreate']) && !is_bool($nameIdPolicy['AllowCreate'])) {
            throw InvalidArgumentException::invalidType('bool', $nameIdPolicy['AllowCreate']);
        }

        $this->nameIdPolicy = $nameIdPolicy;
    }
public function setNameIdPolicy(array $nameIdPolicy) : void
    {
        if (isset($nameIdPolicy['Format']) && !is_string($nameIdPolicy['Format'])) {
            throw InvalidArgumentException::invalidType('string', $nameIdPolicy['Format']);
        }
        if (isset($nameIdPolicy['SPNameQualifier']) && !is_string($nameIdPolicy['SPNameQualifier'])) {
            throw InvalidArgumentException::invalidType('string', $nameIdPolicy['SPNameQualifier']);
        }
        if (isset($nameIdPolicy['AllowCreate']) && !is_bool($nameIdPolicy['AllowCreate'])) {
            throw InvalidArgumentException::invalidType('bool', $nameIdPolicy['AllowCreate']);
        }

        $this->nameIdPolicy = $nameIdPolicy;
    }
public function setNameIdPolicy ( array $ nameIdPolicy ) : void { if ( isset ( $ nameIdPolicy [ 'Format' ] ) && ! is_string ( $ nameIdPolicy [ 'Format' ] ) ) { throw InvalidArgumentException :: invalidType ( 'string' , $ nameIdPolicy [ 'Format' ] ) ; } if ( isset ( $ nameIdPolicy [ 'SPNameQualifier' ] ) && ! is_string ( $ nameIdPolicy [ 'SPNameQualifier' ] ) ) { throw InvalidArgumentException :: invalidType ( 'string' , $ nameIdPolicy [ 'SPNameQualifier' ] ) ; } if ( isset ( $ nameIdPolicy [ 'AllowCreate' ] ) && ! is_bool ( $ nameIdPolicy [ 'AllowCreate' ] ) ) { throw InvalidArgumentException :: invalidType ( 'bool' , $ nameIdPolicy [ 'AllowCreate' ] ) ; } $ this -> nameIdPolicy = $ nameIdPolicy ; }
Set the NameIDPolicy.

This function accepts an array with the following options:
- 'Format' (string)
- 'SPNameQualifier' (string)
- 'AllowCreate' (bool)

@param array $nameIdPolicy The NameIDPolicy.
@return void
Set the NameIDPolicy .