trait LifecycleCallbackClassMetadataTrait (View source)

Properties

array $lifecycleCallbacks

Methods

boolean
hasLifecycleCallbacks(string $event)

Indicates if object has a lifecycle callback for the given event name

addLifecycleCallback(string $event, string $method)

Set the object lifecycle callback for ghe given event.

Details

boolean hasLifecycleCallbacks(string $event)

Indicates if object has a lifecycle callback for the given event name

Parameters

string $event Event name

Return Value

boolean

addLifecycleCallback(string $event, string $method)

Set the object lifecycle callback for ghe given event.

Parameters

string $event Event name
string $method Method name