GenericEvent
- Full name:
\Qubus\EventDispatcher\Legacy\GenericEvent
- Parent class:
\Qubus\EventDispatcher\BaseEvent
- This class implements:
\Qubus\EventDispatcher\Legacy\Event
Properties
name
The event name.
subject
The subject.
arguments
Array of arguments.
Methods
__construct
public __construct(string $name = '', object|null $subject = null, array $arguments = []): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$name | string | |
$subject | object|null | |
$arguments | array |
getName
Gets the event name.
setName
Sets the event name.
Parameters:
Parameter | Type | Description |
---|---|---|
$name | string |
setSubject
Sets the subject.
Parameters:
Parameter | Type | Description |
---|---|---|
$subject | object|null |
getSubject
Gets the subject.
setArgument
Sets a argument to the event.
Parameters:
Parameter | Type | Description |
---|---|---|
$name | string | |
$value | mixed |
getArgument
Gets the argument by its key.
Parameters:
Parameter | Type | Description |
---|---|---|
$name | string |
Throws:
setArguments
Sets array of arguments.
Parameters:
Parameter | Type | Description |
---|---|---|
$arguments | array |
getArguments
Gets all arguments.
hasArgument
Has argument.
Parameters:
Parameter | Type | Description |
---|---|---|
$key | string |
Inherited methods
isPropagationStopped
{@inheritdoc}
stopPropagation
Stops the propagation of the event to further event listeners.
Automatically generated on 2025-10-13