You are here

class HydrateEvent in Zircon Profile 8.0

Same name in this branch
  1. 8.0 vendor/zendframework/zend-hydrator/src/Aggregate/HydrateEvent.php \Zend\Hydrator\Aggregate\HydrateEvent
  2. 8.0 vendor/zendframework/zend-stdlib/src/Hydrator/Aggregate/HydrateEvent.php \Zend\Stdlib\Hydrator\Aggregate\HydrateEvent
Same name and namespace in other branches
  1. 8 vendor/zendframework/zend-hydrator/src/Aggregate/HydrateEvent.php \Zend\Hydrator\Aggregate\HydrateEvent

Event triggered when the {data into an object

Hierarchy

  • class \Zend\Hydrator\Aggregate\HydrateEvent extends \Zend\EventManager\Event

Expanded class hierarchy of HydrateEvent

See also

AggregateHydrator} hydrates

1 file declares its use of HydrateEvent
HydrateEvent.php in vendor/zendframework/zend-stdlib/src/Hydrator/Aggregate/HydrateEvent.php

File

vendor/zendframework/zend-hydrator/src/Aggregate/HydrateEvent.php, line 18

Namespace

Zend\Hydrator\Aggregate
View source
class HydrateEvent extends Event {
  const EVENT_HYDRATE = 'hydrate';

  /**
   * {@inheritDoc}
   */
  protected $name = self::EVENT_HYDRATE;

  /**
   * @var object
   */
  protected $hydratedObject;

  /**
   * @var array
   */
  protected $hydrationData;

  /**
   * @param object $target
   * @param object $hydratedObject
   * @param array  $hydrationData
   */
  public function __construct($target, $hydratedObject, array $hydrationData) {
    $this->target = $target;
    $this->hydratedObject = $hydratedObject;
    $this->hydrationData = $hydrationData;
  }

  /**
   * Retrieves the object that is being hydrated
   *
   * @return object
   */
  public function getHydratedObject() {
    return $this->hydratedObject;
  }

  /**
   * @param object $hydratedObject
   */
  public function setHydratedObject($hydratedObject) {
    $this->hydratedObject = $hydratedObject;
  }

  /**
   * Retrieves the data that is being used for hydration
   *
   * @return array
   */
  public function getHydrationData() {
    return $this->hydrationData;
  }

  /**
   * @param array $hydrationData
   */
  public function setHydrationData(array $hydrationData) {
    $this->hydrationData = $hydrationData;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
HydrateEvent::$hydratedObject protected property
HydrateEvent::$hydrationData protected property
HydrateEvent::$name protected property
HydrateEvent::EVENT_HYDRATE constant
HydrateEvent::getHydratedObject public function Retrieves the object that is being hydrated
HydrateEvent::getHydrationData public function Retrieves the data that is being used for hydration
HydrateEvent::setHydratedObject public function
HydrateEvent::setHydrationData public function
HydrateEvent::__construct public function