WriterInitializationEvent

in package
extends EventAbstract

Abstract class representing the base elements of a phpDocumentor event.

Properties

protected$subject  : object                

protected$writer  : \phpDocumentor\Transformer\Writer\WriterAbstract                

Methods

Initializes this event with the given subject.

public__construct(object $subject) : mixed

Parameters

$subject : object

Returns

mixed

Returns the object that is the subject of this event.

publicgetSubject() : object

Returns

object

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

publicstaticcreateInstance(object $subject) : EventAbstract

Used as convenience method for fluent interfaces.

Parameters

$subject : object

Returns

EventAbstract

Sets the currently parsed writer in this event.

publicsetWriter(WriterAbstract $writer) : WriterInitializationEvent

Parameters

$writer : WriterAbstract

Returns

WriterInitializationEvent

publicgetWriter() : WriterAbstract|null

Returns

WriterAbstract|null