Soong
Soong provides a general-purpose ETL library for data migration.
KeyMapBase Class Reference

Common implementation many/most key map implementations will need. More...

Inheritance diagram for KeyMapBase:
OptionsResolverComponent KeyMap ConfigurableComponent ConfigurableComponent Countable

Protected Member Functions

 optionDefinitions ()
 
 hashKeys (array $key)
 Create a unique hash of the provided key values. More...
 
- Protected Member Functions inherited from OptionsResolverComponent
 optionDefinitions ()
 List of definition arrays for each option supported by the component. More...
 

Additional Inherited Members

- Public Member Functions inherited from OptionsResolverComponent
 getConfigurationValue (string $optionName)
 Retrieve a configuration value for a named option.
Parameters
string$optionNameName of the option to retrieve.
Returns
mixed|null Retrieved value, or NULL if unset.
More...
 
 getAllConfigurationValues ()
 Retrieve a list of all available configuration values.
Returns
iterable Option values keyed by names.
More...
 
- Public Member Functions inherited from KeyMap
 saveKeyMap (array $extractedKey, array $loadedKey)
 Persist the mapping of an extracted key to the corresponding loaded key. More...
 
 lookupLoadedKey (array $extractedKey)
 Retrieve the loaded key corresponding to a given extracted key. More...
 
 lookupExtractedKeys (array $loadedKey)
 Retrieve any extracted keys mapped to a given loaded key. More...
 
 delete (array $extractedKey)
 Remove the mapping for a given extracted key from the map. More...
 
 iterate ()
 Iterate over the key map, generating the keys. More...
 
- Protected Attributes inherited from OptionsResolverComponent
 $configuration = []
 Resolved configuration for the component. More...
 
 $resolver
 Use Symfony OptionsResolver as our default configuration manager. More...
 

Detailed Description

Common implementation many/most key map implementations will need.

Member Function Documentation

◆ optionDefinitions()

optionDefinitions ( )
protected

◆ hashKeys()

hashKeys ( array  $key)
protected

Create a unique hash of the provided key values.

The resulting hash should have a consistent length regardless of values.

Parameters
array$keyAn array of key values.
Returns
string A string uniquely representing the key values.