Library
Class

Library\Event\EventObserverProxy

class EventObserverProxy implements ObserverInterface

Class EventObserverProxy

This proxy class will try to always construct an object compliant with the ObserverInterface. It uses a simple callback property that can be:

Methods

__construct(callable|null $callback = null)

$this setCallback(callable|array $callback)

mixed|null handleEvent(EventInterface $event)

Details

at line 51
public __construct(callable|null $callback = null)

Parameters

callable|null $callback

at line 63
public $this setCallback(callable|array $callback)

Parameters

callable|array $callback

Return Value

$this

Exceptions

Exception

at line 88
public mixed|null handleEvent(EventInterface $event)

Parameters

EventInterface $event

Return Value

mixed|null

Exceptions

Exception