Class HydrateEvent

Summary

Fully Qualified Name: Laminas\Hydrator\Aggregate\HydrateEvent
Extends: Event

Description

Event triggered when the {@see AggregateHydrator} hydrates data into an object

Methods

Name Description Defined By
__construct() HydrateEvent
getHydratedObject() Retrieves the object that is being hydrated HydrateEvent
getHydrationData() Retrieves the data that is being used for hydration HydrateEvent
getName() Get event name Event
getParam() Get an individual parameter Event
getParams() Get all parameters Event
getTarget() Get the event target Event
propagationIsStopped() Is propagation stopped? Event
setHydratedObject() HydrateEvent
setHydrationData() HydrateEvent
setName() Set the event name Event
setParam() Set an individual parameter to a value Event
setParams() Set parameters Event
setTarget() Set the event target/context Event
stopPropagation() Stop further event propagation Event

Method Details

__construct()

Parameter Name Type Description
$hydrationData array Data
$target
$hydratedObject

Returns:

getHydratedObject()

Retrieves the object that is being hydrated

Returns:

getHydrationData()

Retrieves the data that is being used for hydration

Returns: array

getName()

Get event name

Returns: string

getParam()

Get an individual parameter

If the parameter does not exist, the $default value will be returned.

Parameter Name Type Description
$name string|int
$default mixed

Returns: mixed

getParams()

Get all parameters

Returns: array|object|\ArrayAccess

getTarget()

Get the event target

This may be either an object, or the name of a static method.

Returns: string|object

propagationIsStopped()

Is propagation stopped?

Returns: bool

setHydratedObject()

Parameter Name Type Description
$hydratedObject

Returns: void

setHydrationData()

Parameter Name Type Description
$hydrationData array

Returns:

setName()

Set the event name

Parameter Name Type Description
$name string

Returns:

setParam()

Set an individual parameter to a value

Parameter Name Type Description
$name string|int
$value mixed

Returns:

setParams()

Set parameters

Overwrites parameters

Parameter Name Type Description
$params array|\ArrayAccess|object

Returns:

setTarget()

Set the event target/context

Parameter Name Type Description
$target null|string|object

Returns:

stopPropagation()

Stop further event propagation

Parameter Name Type Description
$flag bool

Returns:

Top