Gets the strategy with the given name.
Parameters: | string – The name of the strategy to get. |
---|---|
Return type: | StrategyInterface |
Checks if the strategy with the given name exists.
Parameters: | string – The name of the strategy to check for. |
---|---|
Return type: | bool |
Adds the given strategy under the given name.
Parameters: |
|
---|---|
Return type: | HydratorInterface |
Removes the strategy with the given name.
Parameters: | string – The name of the strategy to remove. |
---|---|
Return type: | HydratorInterface |
Converts a value for extraction. If no strategy exists the plain value is returned.
Parameters: |
|
---|---|
Return type: | mixed |
Converts a value for hydration. If no strategy exists the plain value is returned.
Parameters: |
|
---|---|
Return type: | mixed |
Add a new filter to take care of what needs to be hydrated. To exclude e.g. the method getServiceLocator:
<code> $composite->addFilter(“servicelocator”,
- function($property) {
list($class, $method) = explode(‘::’, $property); if ($method === ‘getServiceLocator’) {
return false;} return true;
}, FilterComposite::CONDITION_AND
); </code>
Parameters: |
|
---|---|
Return type: | FilterFilterComposite |