Property | Type | Description | |
---|---|---|---|
$constructorReflectionFirstLevelCache | array | As it is very likely that the constructor arguments are needed twice we should cache them for the request. | |
$objectManager | Neos\Flow\ObjectManagement\ObjectManagerInterface | ||
$priority | integer | ||
$reflectionService | |||
$sourceTypes | array | ||
$targetType | string |
Method | Description | |
---|---|---|
canConvertFrom ( mixed $source, string $targetType ) : boolean | Only convert non-persistent types | |
convertFrom ( mixed $source, string $targetType, array $convertedChildProperties = [], Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : object | Convert an object from $source to an object. | |
getSourceChildPropertiesToBeConverted ( mixed $source ) : array | Convert all properties in the source array | |
getTargetTypeForSource ( mixed $source, string $originalTargetType, Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : string | Determines the target type based on the source's (optional) __type key. | |
getTypeOfChildProperty ( string $targetType, string $propertyName, Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration ) : string | The type of a property is determined by the reflection service. |
Method | Description | |
---|---|---|
buildObject ( array &$possibleConstructorArgumentValues, string $objectType ) : object | Builds a new instance of $objectType with the given $possibleConstructorArgumentValues. | |
getConstructorArgumentsForClass ( string $className ) : array |
Get the constructor argument reflection for the given object type. |
public convertFrom ( mixed $source, string $targetType, array $convertedChildProperties = [], Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : object | ||
$source | mixed | |
$targetType | string | |
$convertedChildProperties | array | |
$configuration | Neos\Flow\Property\PropertyMappingConfigurationInterface | |
return | object | the target type |
protected getConstructorArgumentsForClass ( string $className ) : array |
||
$className | string | |
return | array |
public getSourceChildPropertiesToBeConverted ( mixed $source ) : array | ||
$source | mixed | |
return | array |
protected array $constructorReflectionFirstLevelCache | ||
return | array |
protected ObjectManagerInterface,Neos\Flow\ObjectManagement $objectManager | ||
return | Neos\Flow\ObjectManagement\ObjectManagerInterface |
protected ReflectionService,Neos\Flow\Reflection $reflectionService | ||
return |