class XmlReadyEvent extends GenericEvent (View source)

Properties

protected SimpleXMLElement $document

The sitemap XML document.

Methods

__construct(SimpleXMLElement $document)

Initialize the instance.

getSubject()

{@inheritdoc}

getDocument()

Get the sitemap XML document.

$this
setDocument(SimpleXMLElement $newDocument)

Replace the sitemap XML document.

Details

__construct(SimpleXMLElement $document)

Initialize the instance.

Parameters

SimpleXMLElement $document

the sitemap XML document

getSubject()

{@inheritdoc}

See also

\Symfony\Component\EventDispatcher\GenericEvent::getSubject()

SimpleXMLElement getDocument()

Get the sitemap XML document.

Return Value

SimpleXMLElement

$this setDocument(SimpleXMLElement $newDocument)

Replace the sitemap XML document.

Parameters

SimpleXMLElement $newDocument

Return Value

$this