You are here

public function AbstractHydrator::extractName in Zircon Profile 8.0

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

Convert a name for extraction. If no naming strategy exists, the plain value is returned.

Parameters

string $name The name to convert.:

null $object The object is optionally provided as context.:

Return value

mixed

4 calls to AbstractHydrator::extractName()
ArraySerializable::extract in vendor/zendframework/zend-hydrator/src/ArraySerializable.php
Extract values from the provided object
ClassMethods::extract in vendor/zendframework/zend-hydrator/src/ClassMethods.php
Extract values from an object with class methods
ObjectProperty::extract in vendor/zendframework/zend-hydrator/src/ObjectProperty.php
Extracts the accessible non-static properties of the given $object.
Reflection::extract in vendor/zendframework/zend-hydrator/src/Reflection.php
Extract values from an object

File

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

Class

AbstractHydrator

Namespace

Zend\Hydrator

Code

public function extractName($name, $object = null) {
  if ($this
    ->hasNamingStrategy()) {
    $name = $this
      ->getNamingStrategy()
      ->extract($name, $object);
  }
  return $name;
}