You are here

public function AggregateHydrator::extract in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/zendframework/zend-hydrator/src/Aggregate/AggregateHydrator.php \Zend\Hydrator\Aggregate\AggregateHydrator::extract()

Extract values from an object

Parameters

object $object:

Return value

array

Overrides ExtractionInterface::extract

File

vendor/zendframework/zend-hydrator/src/Aggregate/AggregateHydrator.php, line 43

Class

AggregateHydrator
Aggregate hydrator that composes multiple hydrators via events

Namespace

Zend\Hydrator\Aggregate

Code

public function extract($object) {
  $event = new ExtractEvent($this, $object);
  $this
    ->getEventManager()
    ->trigger($event);
  return $event
    ->getExtractedData();
}