You are here

class IdentityNamingStrategy in Zircon Profile 8

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

Hierarchy

Expanded class hierarchy of IdentityNamingStrategy

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

File

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

Namespace

Zend\Hydrator\NamingStrategy
View source
class IdentityNamingStrategy implements NamingStrategyInterface {

  /**
   * {@inheritDoc}
   */
  public function hydrate($name) {
    return $name;
  }

  /**
   * {@inheritDoc}
   */
  public function extract($name) {
    return $name;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
IdentityNamingStrategy::extract public function Converts the given name so that it can be hydrated by the hydrator. Overrides NamingStrategyInterface::extract
IdentityNamingStrategy::hydrate public function Converts the given name so that it can be extracted by the hydrator. Overrides NamingStrategyInterface::hydrate