public function toXML(DOMElement $parent) : DOMElement
    {
        Assert::notEmpty($this->AuthzService);

        $e = parent::toXML($parent);

        foreach ($this->AuthzService as $ep) {
            $ep->toXML($e, 'md:AuthzService');
        }

        foreach ($this->AssertionIDRequestService as $ep) {
            $ep->toXML($e, 'md:AssertionIDRequestService');
        }

        Utils::addStrings($e, Constants::NS_MD, 'md:NameIDFormat', false, $this->NameIDFormat);

        return $e;
    }
public function toXML(DOMElement $parent) : DOMElement
    {
        Assert::notEmpty($this->AuthzService);

        $e = parent::toXML($parent);

        foreach ($this->AuthzService as $ep) {
            $ep->toXML($e, 'md:AuthzService');
        }

        foreach ($this->AssertionIDRequestService as $ep) {
            $ep->toXML($e, 'md:AssertionIDRequestService');
        }

        Utils::addStrings($e, Constants::NS_MD, 'md:NameIDFormat', false, $this->NameIDFormat);

        return $e;
    }
public function toXML ( DOMElement $ parent ) : DOMElement { Assert :: notEmpty ( $ this -> AuthzService ) ; $ e = parent :: toXML ( $ parent ) ; foreach ( $ this -> AuthzService as $ ep ) { $ ep -> toXML ( $ e , 'md:AuthzService' ) ; } foreach ( $ this -> AssertionIDRequestService as $ ep ) { $ ep -> toXML ( $ e , 'md:AssertionIDRequestService' ) ; } Utils :: addStrings ( $ e , Constants :: NS_MD , 'md:NameIDFormat' , false , $ this -> NameIDFormat ) ; return $ e ; }
Add this PDPDescriptor to an EntityDescriptor.

@param \DOMElement $parent The EntityDescriptor we should append this IDPSSODescriptor to.
@return \DOMElement
Add this PDPDescriptor to an EntityDescriptor .