PreTransformationEvent

Extends \phpDocumentor\Event\EventAbstract

Event happening prior to each individual transformation.

package

Default

Methods

Initializes this event with the given subject.

__construct(object $subject) 
inherited

Arguments

$subject

object

Creates a new instance of a derived object and return that.

createInstance(object $subject) : static
inherited static

Used as convenience method for fluent interfaces.

Arguments

$subject

object

Response

static

Returns the Abstract Syntax Tree as DOMDocument.

getSource() : \DOMDocument

Response

\DOMDocument

Returns the object that is the subject of this event.

getSubject() : object
inherited

Response

object

getTransformation

getTransformation() : mixed

Response

mixed

Sets the Abstract Syntax Tree as DOMDocument.

setSource(\DOMDocument $source) : \phpDocumentor\Transformer\Event\PreTransformationEvent

Arguments

$source

\DOMDocument

Response

\phpDocumentor\Transformer\Event\PreTransformationEvent

setTransformation

setTransformation(mixed $transformation) 

Arguments

$transformation

mixed

Properties

remembers the XML-based AST so that it can be used from the listener

source : \DOMDocument
var

remembers the XML-based AST so that it can be used from the listener

Type(s)

\DOMDocument

transformation

transformation : 

Type(s)

Represents an object that is the subject of this event

subject : object
inherited
var

Represents an object that is the subject of this event

Type(s)

object