public function setAuthnContextDecl(Chunk $authnContextDecl) : void
    {
        if (!empty($this->authnContextDeclRef)) {
            throw new \Exception(
                'AuthnContextDeclRef is already registered! May only have either a Decl or a DeclRef, not both!'
            );
        }

        $this->authnContextDecl = $authnContextDecl;
    }
public function setAuthnContextDecl(Chunk $authnContextDecl) : void
    {
        if (!empty($this->authnContextDeclRef)) {
            throw new \Exception(
                'AuthnContextDeclRef is already registered! May only have either a Decl or a DeclRef, not both!'
            );
        }

        $this->authnContextDecl = $authnContextDecl;
    }
public function setAuthnContextDecl ( Chunk $ authnContextDecl ) : void { if ( ! empty ( $ this -> authnContextDeclRef ) ) { throw new \ Exception ( 'AuthnContextDeclRef is already registered! May only have either a Decl or a DeclRef, not both!' ) ; } $ this -> authnContextDecl = $ authnContextDecl ; }
Set the authentication context declaration.

@param \SAML2\XML\Chunk $authnContextDecl
@throws \Exception
@return void
Set the authentication context declaration .