PreTransformationEvent
extends Event
in package
FinalYes
Event happening prior to each individual transformation.
Table of Contents
Properties
- $subject : object
- $transformation : Transformation
Methods
- __construct() : mixed
- create() : self
- getSubject() : object
- getTransformation() : Transformation
- isPropagationStopped() : bool
- Is propagation stopped?
- stopPropagation() : void
- Stops the propagation of the event to further event listeners.
Properties
$subject read-only
private
object
$subject
$transformation read-only
private
Transformation
$transformation
Methods
__construct()
public
__construct(object $subject, Transformation $transformation) : mixed
Parameters
- $subject : object
- $transformation : Transformation
create()
public
static create(object $subject, Transformation $transformation) : self
Parameters
- $subject : object
- $transformation : Transformation
Return values
selfgetSubject()
public
getSubject() : object
Return values
objectgetTransformation()
public
getTransformation() : Transformation
Return values
TransformationisPropagationStopped()
Is propagation stopped?
public
isPropagationStopped() : bool
This will typically only be used by the Dispatcher to determine if the previous listener halted propagation.
Return values
bool —True if the Event is complete and no further listeners should be called. False to continue calling listeners.
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().