interface HydratorInterface (View source)

The HydratorInterface defines methods all hydrator need to implement

Methods

hydrate(object $document, array $data, array $hints = [])

Hydrate array of MongoDB document data into the given document object.

Details

hydrate(object $document, array $data, array $hints = [])

Hydrate array of MongoDB document data into the given document object.

Parameters

object $document
array $data
array $hints