public function AbstractHydrator::hasStrategy in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/zendframework/zend-hydrator/src/AbstractHydrator.php \Zend\Hydrator\AbstractHydrator::hasStrategy()
Checks if the strategy with the given name exists.
Parameters
string $name The name of the strategy to check for.:
Return value
bool
Overrides StrategyEnabledInterface::hasStrategy
2 calls to AbstractHydrator::hasStrategy()
- AbstractHydrator::extractValue in vendor/
zendframework/ zend-hydrator/ src/ AbstractHydrator.php - Converts a value for extraction. If no strategy exists the plain value is returned.
- AbstractHydrator::hydrateValue in vendor/
zendframework/ zend-hydrator/ src/ AbstractHydrator.php - Converts a value for hydration. If no strategy exists the plain value is returned.
File
- vendor/
zendframework/ zend-hydrator/ src/ AbstractHydrator.php, line 81
Class
Namespace
Zend\HydratorCode
public function hasStrategy($name) {
return array_key_exists($name, $this->strategies) || array_key_exists('*', $this->strategies);
}