class ClassMethods in Zircon Profile 8
Same name in this branch
- 8 vendor/zendframework/zend-hydrator/src/ClassMethods.php \Zend\Hydrator\ClassMethods
- 8 vendor/zendframework/zend-stdlib/src/Hydrator/ClassMethods.php \Zend\Stdlib\Hydrator\ClassMethods
Same name and namespace in other branches
- 8.0 vendor/zendframework/zend-stdlib/src/Hydrator/ClassMethods.php \Zend\Stdlib\Hydrator\ClassMethods
Hierarchy
- class \Zend\Hydrator\AbstractHydrator implements FilterEnabledInterface, HydratorInterface, NamingStrategyEnabledInterface, StrategyEnabledInterface
- class \Zend\Hydrator\ClassMethods implements HydratorOptionsInterface
- class \Zend\Stdlib\Hydrator\ClassMethods implements HydratorInterface, HydratorOptionsInterface
- class \Zend\Hydrator\ClassMethods implements HydratorOptionsInterface
Expanded class hierarchy of ClassMethods
Deprecated
Use Zend\Hydrator\ClassMethods from zendframework/zend-hydrator instead.
File
- vendor/
zendframework/ zend-stdlib/ src/ Hydrator/ ClassMethods.php, line 17
Namespace
Zend\Stdlib\HydratorView source
class ClassMethods extends BaseClassMethods implements HydratorInterface, HydratorOptionsInterface {
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AbstractHydrator:: |
protected | property | Composite to filter the methods, that need to be hydrated | |
AbstractHydrator:: |
protected | property | An instance of NamingStrategy\NamingStrategyInterface | |
AbstractHydrator:: |
protected | property | The list with strategies that this hydrator has. | |
AbstractHydrator:: |
public | function |
Adds the given strategy under the given name. Overrides StrategyEnabledInterface:: |
|
AbstractHydrator:: |
public | function | Convert a name for extraction. If no naming strategy exists, the plain value is returned. | |
AbstractHydrator:: |
public | function | Converts a value for extraction. If no strategy exists the plain value is returned. | |
AbstractHydrator:: |
public | function | Get the filter instance | |
AbstractHydrator:: |
public | function |
Gets the naming strategy. Overrides NamingStrategyEnabledInterface:: |
|
AbstractHydrator:: |
public | function |
Gets the strategy with the given name. Overrides StrategyEnabledInterface:: |
|
AbstractHydrator:: |
public | function |
Check whether a specific filter exists at key $name or not Overrides FilterEnabledInterface:: |
|
AbstractHydrator:: |
public | function |
Checks if a naming strategy exists. Overrides NamingStrategyEnabledInterface:: |
|
AbstractHydrator:: |
public | function |
Checks if the strategy with the given name exists. Overrides StrategyEnabledInterface:: |
|
AbstractHydrator:: |
public | function | Converts a value for hydration. If no naming strategy exists, the plain value is returned. | |
AbstractHydrator:: |
public | function | Converts a value for hydration. If no strategy exists the plain value is returned. | |
AbstractHydrator:: |
public | function |
Removes the strategy with the given name. Overrides StrategyEnabledInterface:: |
|
ClassMethods:: |
private | property | ||
ClassMethods:: |
private | property | A map of extraction methods to property name to be used during extraction, indexed by class name and method name | |
ClassMethods:: |
private | property | Holds the names of the methods used for hydration, indexed by class::property name, false if the hydration method is not callable/usable for hydration purposes | |
ClassMethods:: |
protected | property | Flag defining whether array keys are underscore-separated (true) or camel case (false) | |
ClassMethods:: |
public | function |
Add a new filter to take care of what needs to be hydrated.
To exclude e.g. the method getServiceLocator: Overrides AbstractHydrator:: |
|
ClassMethods:: |
public | function |
Extract values from an object with class methods Overrides ExtractionInterface:: |
|
ClassMethods:: |
public | function | ||
ClassMethods:: |
public | function |
Hydrate an object by populating getter/setter methods Overrides HydrationInterface:: |
|
ClassMethods:: |
public | function |
Remove a filter from the composition.
To not extract "has" methods, you simply need to unregister it Overrides AbstractHydrator:: |
|
ClassMethods:: |
public | function |
Removes the naming strategy Overrides AbstractHydrator:: |
|
ClassMethods:: |
private | function | Reset all local hydration/extraction caches | |
ClassMethods:: |
public | function |
Adds the given naming strategy Overrides AbstractHydrator:: |
|
ClassMethods:: |
public | function |
Overrides HydratorOptionsInterface:: |
|
ClassMethods:: |
public | function | ||
ClassMethods:: |
public | function |
Define if extract values will use camel case or name with underscore Overrides AbstractHydrator:: |