interface EventInterface

事件接口

Methods

string
getName()

Get event name

object|string|null
getTarget()

Get target/context from which event was triggered

mixed
getData()

Get parameters passed to the event

setName(string $name)

Set the event name

setTarget(object|string $target)

Set the event target

setData(array $data)

Set event data

stopPropagation()

Indicate whether or not to stop propagating this event

bool
isPropagationStopped()

Has this event indicated event propagation should stop?

Details

at line 17
string getName()

Get event name

Return Value

string

at line 24
object|string|null getTarget()

Get target/context from which event was triggered

Return Value

object|string|null

at line 31
mixed getData()

Get parameters passed to the event

Return Value

mixed

at line 38
setName(string $name)

Set the event name

Parameters

string $name

at line 45
setTarget(object|string $target)

Set the event target

Parameters

object|string $target

at line 52
setData(array $data)

Set event data

Parameters

array $data

at line 57
stopPropagation()

Indicate whether or not to stop propagating this event

at line 64
bool isPropagationStopped()

Has this event indicated event propagation should stop?

Return Value

bool