trait HydratorAwareTrait in Zircon Profile 8.0
Same name in this branch
- 8.0 vendor/zendframework/zend-hydrator/src/HydratorAwareTrait.php \Zend\Hydrator\HydratorAwareTrait
- 8.0 vendor/zendframework/zend-stdlib/src/Hydrator/HydratorAwareTrait.php \Zend\Stdlib\Hydrator\HydratorAwareTrait
Same name and namespace in other branches
- 8 vendor/zendframework/zend-hydrator/src/HydratorAwareTrait.php \Zend\Hydrator\HydratorAwareTrait
Hierarchy
- trait \Zend\Hydrator\HydratorAwareTrait
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\HydratorView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
HydratorAwareTrait:: |
protected | property | Hydrator instance | |
HydratorAwareTrait:: |
public | function | Retrieve hydrator | |
HydratorAwareTrait:: |
public | function | Set hydrator |