WriterInitializationEvent
extends EventAbstract
in package
Abstract class representing the base elements of a phpDocumentor event.
Table of Contents
- $subject : object
- $propagationStopped : mixed
- $writer : WriterAbstract|null
- __construct() : mixed
- Initializes this event with the given subject.
- createInstance() : EventAbstract
- Creates a new instance of a derived object and return that.
- getSubject() : object
- Returns the object that is the subject of this event.
- getWriter() : WriterAbstract|null
- isPropagationStopped() : bool
- Is propagation stopped?
- setWriter() : WriterInitializationEvent
- Sets the currently parsed writer in this event.
- stopPropagation() : void
- Stops the propagation of the event to further event listeners.
Properties
$subject
protected
object
$subject
Represents an object that is the subject of this event
$propagationStopped
private
mixed
$propagationStopped
= false
$writer
private
WriterAbstract|null
$writer
Methods
__construct()
Initializes this event with the given subject.
public
__construct(object $subject) : mixed
Parameters
- $subject : object
Return values
mixed —createInstance()
Creates a new instance of a derived object and return that.
public
static createInstance(object $subject) : EventAbstract
Used as convenience method for fluent interfaces.
Parameters
- $subject : object
Return values
EventAbstract —getSubject()
Returns the object that is the subject of this event.
public
getSubject() : object
Return values
object —getWriter()
public
getWriter() : WriterAbstract|null
Return values
WriterAbstract|null —isPropagationStopped()
Is propagation stopped?
public
isPropagationStopped() : bool
Return values
bool —setWriter()
Sets the currently parsed writer in this event.
public
setWriter(WriterAbstract $writer) : WriterInitializationEvent
Parameters
- $writer : WriterAbstract
Return values
WriterInitializationEvent —stopPropagation()
Stops the propagation of the event to further event listeners.
public
stopPropagation() : void
If multiple event listeners are connected to the same event, no further event listener will be triggered once any trigger calls stopPropagation().