You are here

trait HydratorAwareTrait in Zircon Profile 8.0

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

Hierarchy

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

File

vendor/zendframework/zend-hydrator/src/HydratorAwareTrait.php, line 12

Namespace

Zend\Hydrator
View source
trait HydratorAwareTrait {

  /**
   * Hydrator instance
   *
   * @var HydratorInterface
   * @access protected
   */
  protected $hydrator = null;

  /**
   * Set hydrator
   *
   * @param  HydratorInterface $hydrator
   * @return self
   * @access public
   */
  public function setHydrator(HydratorInterface $hydrator) {
    $this->hydrator = $hydrator;
    return $this;
  }

  /**
   * Retrieve hydrator
   *
   * @param void
   * @return null|HydratorInterface
   * @access public
   */
  public function getHydrator() {
    return $this->hydrator;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
HydratorAwareTrait::$hydrator protected property Hydrator instance
HydratorAwareTrait::getHydrator public function Retrieve hydrator
HydratorAwareTrait::setHydrator public function Set hydrator