Composer API
Class

Composer\EventDispatcher\Event

class Event

The base event class

Methods

__construct(string $name, array $args = array(), array $flags = array())

Constructor.

string getName()

Returns the event's name.

array getArguments()

Returns the event's arguments.

array getFlags()

Returns the event's flags.

bool isPropagationStopped()

Checks if stopPropagation has been called

stopPropagation()

Prevents the event from being passed to further listeners

Details

at line 49
public __construct(string $name, array $args = array(), array $flags = array())

Constructor.

Parameters

string $name The event name
array $args Arguments passed by the user
array $flags Optional flags to pass data not as argument

at line 61
public string getName()

Returns the event's name.

Return Value

string The event name

at line 71
public array getArguments()

Returns the event's arguments.

Return Value

array The event arguments

at line 81
public array getFlags()

Returns the event's flags.

Return Value

array The event flags

at line 91
public bool isPropagationStopped()

Checks if stopPropagation has been called

Return Value

bool Whether propagation has been stopped

at line 99
public stopPropagation()

Prevents the event from being passed to further listeners