public static function addList(DOMElement $parent, array $extensions) : void
    {
        if (empty($extensions)) {
            return;
        }

        $extElement = $parent->ownerDocument->createElementNS(Constants::NS_SAMLP, 'samlp:Extensions');
        $parent->appendChild($extElement);

        foreach ($extensions as $ext) {
            $ext->toXML($extElement);
        }
    }
public static function addList(DOMElement $parent, array $extensions) : void
    {
        if (empty($extensions)) {
            return;
        }

        $extElement = $parent->ownerDocument->createElementNS(Constants::NS_SAMLP, 'samlp:Extensions');
        $parent->appendChild($extElement);

        foreach ($extensions as $ext) {
            $ext->toXML($extElement);
        }
    }
public static function addList ( DOMElement $ parent , array $ extensions ) : void { if ( empty ( $ extensions ) ) { return ; } $ extElement = $ parent -> ownerDocument -> createElementNS ( Constants :: NS_SAMLP , 'samlp:Extensions' ) ; $ parent -> appendChild ( $ extElement ) ; foreach ( $ extensions as $ ext ) { $ ext -> toXML ( $ extElement ) ; } }
Add a list of Extensions to the given element.

@param \DOMElement $parent The element we should add the extensions to.
@param \SAML2\XML\Chunk[] $extensions List of extension objects.
@return void
Add a list of Extensions to the given element .