WrappedListener
in package
FinalYes
Tags
Table of Contents
Properties
- $callableRef : string
- $called : bool
- $dispatcher : EventDispatcherInterface|null
- $hasClassStub : bool
- $listener : string|array<string|int, mixed>|object
- $name : string
- $optimizedListener : Closure|null
- $pretty : string
- $priority : int|null
- $stoppedPropagation : bool
- $stopwatch : Stopwatch
- $stub : ClassStub|string
Methods
- __construct() : mixed
- __invoke() : void
- getInfo() : array<string|int, mixed>
- getPretty() : string
- getWrappedListener() : callable|array<string|int, mixed>
- stoppedPropagation() : bool
- wasCalled() : bool
- parseListener() : array<string|int, mixed>
Properties
$callableRef
private
string
$callableRef
$called
private
bool
$called
= false
$dispatcher
private
EventDispatcherInterface|null
$dispatcher
$hasClassStub
private
static bool
$hasClassStub
$listener
private
string|array<string|int, mixed>|object
$listener
$name
private
string
$name
$optimizedListener
private
Closure|null
$optimizedListener
$pretty
private
string
$pretty
$priority
private
int|null
$priority
= null
$stoppedPropagation
private
bool
$stoppedPropagation
= false
$stopwatch
private
Stopwatch
$stopwatch
$stub
private
ClassStub|string
$stub
Methods
__construct()
public
__construct(callable|array<string|int, mixed> $listener, string|null $name, Stopwatch $stopwatch[, EventDispatcherInterface|null $dispatcher = null ][, int|null $priority = null ]) : mixed
Parameters
- $listener : callable|array<string|int, mixed>
- $name : string|null
- $stopwatch : Stopwatch
- $dispatcher : EventDispatcherInterface|null = null
- $priority : int|null = null
__invoke()
public
__invoke(object $event, string $eventName, EventDispatcherInterface $dispatcher) : void
Parameters
- $event : object
- $eventName : string
- $dispatcher : EventDispatcherInterface
getInfo()
public
getInfo(string $eventName) : array<string|int, mixed>
Parameters
- $eventName : string
Return values
array<string|int, mixed>getPretty()
public
getPretty() : string
Return values
stringgetWrappedListener()
public
getWrappedListener() : callable|array<string|int, mixed>
Return values
callable|array<string|int, mixed>stoppedPropagation()
public
stoppedPropagation() : bool
Return values
boolwasCalled()
public
wasCalled() : bool
Return values
boolparseListener()
private
parseListener(array<string|int, mixed> $listener) : array<string|int, mixed>
Parameters
- $listener : array<string|int, mixed>