CreateResponseClassEvent
extends Event
in package
Event class emitted with the operation.parse_class event
Table of Contents
Properties
- $context : array<string|int, mixed>
- $dispatcher : EventDispatcher
- $name : string
- $propagationStopped : bool
Methods
- __construct() : mixed
- getDispatcher() : EventDispatcherInterface
- Returns the EventDispatcher that dispatches this Event.
- getIterator() : mixed
- getName() : string
- Gets the event's name.
- getResult() : mixed
- Get the created object
- isPropagationStopped() : bool
- Returns whether further event listeners should be triggered.
- offsetExists() : mixed
- offsetGet() : mixed
- offsetSet() : mixed
- offsetUnset() : mixed
- setDispatcher() : mixed
- Stores the EventDispatcher that dispatches this Event.
- setName() : mixed
- Sets the event's name property.
- setResult() : mixed
- Set the result of the object creation
- stopPropagation() : mixed
- Stops the propagation of the event to further event listeners.
- toArray() : array<string|int, mixed>
- Get the array representation of an object
Properties
$context
private
array<string|int, mixed>
$context
$dispatcher
private
EventDispatcher
$dispatcher
Dispatcher that dispatched this event
$name
private
string
$name
This event's name
$propagationStopped
private
bool
$propagationStopped
= false
Whether no further event listeners should be triggered
Methods
__construct()
public
__construct([array<string|int, mixed> $context = array() ]) : mixed
Parameters
- $context : array<string|int, mixed> = array()
-
Contextual information
getDispatcher()
Returns the EventDispatcher that dispatches this Event.
public
getDispatcher() : EventDispatcherInterface
since version 2.4, to be removed in 3.0. The event dispatcher is passed to the listener call.
Return values
EventDispatcherInterfacegetIterator()
public
getIterator() : mixed
Attributes
- #[ReturnTypeWillChange]
getName()
Gets the event's name.
public
getName() : string
since version 2.4, to be removed in 3.0. The event name is passed to the listener call.
Return values
stringgetResult()
Get the created object
public
getResult() : mixed
isPropagationStopped()
Returns whether further event listeners should be triggered.
public
isPropagationStopped() : bool
Tags
Return values
bool —Whether propagation was already stopped for this event.
offsetExists()
public
offsetExists(mixed $offset) : mixed
Parameters
- $offset : mixed
Attributes
- #[ReturnTypeWillChange]
offsetGet()
public
offsetGet(mixed $offset) : mixed
Parameters
- $offset : mixed
Attributes
- #[ReturnTypeWillChange]
offsetSet()
public
offsetSet(mixed $offset, mixed $value) : mixed
Parameters
- $offset : mixed
- $value : mixed
Attributes
- #[ReturnTypeWillChange]
offsetUnset()
public
offsetUnset(mixed $offset) : mixed
Parameters
- $offset : mixed
Attributes
- #[ReturnTypeWillChange]
setDispatcher()
Stores the EventDispatcher that dispatches this Event.
public
setDispatcher(EventDispatcherInterface $dispatcher) : mixed
since version 2.4, to be removed in 3.0. The event dispatcher is passed to the listener call.
Parameters
- $dispatcher : EventDispatcherInterface
setName()
Sets the event's name property.
public
setName(string $name) : mixed
since version 2.4, to be removed in 3.0. The event name is passed to the listener call.
Parameters
- $name : string
-
The event name.
setResult()
Set the result of the object creation
public
setResult(mixed $result) : mixed
Parameters
- $result : mixed
-
Result value to set
stopPropagation()
Stops the propagation of the event to further event listeners.
public
stopPropagation() : mixed
If multiple event listeners are connected to the same event, no further event listener will be triggered once any trigger calls stopPropagation().
toArray()
Get the array representation of an object
public
toArray() : array<string|int, mixed>