You are here

interface NamingStrategyInterface in Zircon Profile 8

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

Allow property extraction / hydration for hydrator

Hierarchy

Expanded class hierarchy of NamingStrategyInterface

All classes that implement NamingStrategyInterface

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

File

vendor/zendframework/zend-hydrator/src/NamingStrategy/NamingStrategyInterface.php, line 15

Namespace

Zend\Hydrator\NamingStrategy
View source
interface NamingStrategyInterface {

  /**
   * Converts the given name so that it can be extracted by the hydrator.
   *
   * @param string $name   The original name
   * @param object $object (optional) The original object for context.
   * @return mixed         The hydrated name
   */
  public function hydrate($name);

  /**
   * Converts the given name so that it can be hydrated by the hydrator.
   *
   * @param string $name The original name
   * @param array  $data (optional) The original data for context.
   * @return mixed The extracted name
   */
  public function extract($name);

}

Members

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