You are here

public function AbstractHydrator::hydrateName in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/zendframework/zend-hydrator/src/AbstractHydrator.php \Zend\Hydrator\AbstractHydrator::hydrateName()

Converts a value for hydration. If no naming strategy exists, the plain value is returned.

Parameters

string $name The name to convert.:

array $data The whole data is optionally provided as context.:

Return value

mixed

4 calls to AbstractHydrator::hydrateName()
ArraySerializable::hydrate in vendor/zendframework/zend-hydrator/src/ArraySerializable.php
Hydrate an object
ClassMethods::hydrate in vendor/zendframework/zend-hydrator/src/ClassMethods.php
Hydrate an object by populating getter/setter methods
ObjectProperty::hydrate in vendor/zendframework/zend-hydrator/src/ObjectProperty.php
Hydrate an object by populating public properties
Reflection::hydrate in vendor/zendframework/zend-hydrator/src/Reflection.php
Hydrate $object with the provided $data.

File

vendor/zendframework/zend-hydrator/src/AbstractHydrator.php, line 168

Class

AbstractHydrator

Namespace

Zend\Hydrator

Code

public function hydrateName($name, $data = null) {
  if ($this
    ->hasNamingStrategy()) {
    $name = $this
      ->getNamingStrategy()
      ->hydrate($name, $data);
  }
  return $name;
}