final class DenormalizingObjectConverter implements TypeConverterInterface (View source)

Methods

string[]
getSupportedSourceTypes()

No description

string
getSupportedTargetType()

No description

string
getTargetTypeForSource(mixed $source, string $originalTargetType, PropertyMappingConfigurationInterface $configuration = null)

No description

int
getPriority()

Return the priority of this TypeConverter. TypeConverters with a high priority are chosen before low priority.

bool
canConvertFrom(mixed $source, string $targetType)

No description

static bool
canConvertFromSourceType(string $sourceType, string $targetType)

No description

static bool
isDenormalizable(string $targetType)

No description

array
getSourceChildPropertiesToBeConverted(mixed $source)

No description

string|null
getTypeOfChildProperty(string $targetType, string $propertyName, PropertyMappingConfigurationInterface $configuration)

No description

mixed|Error
convertFrom(mixed $source, string $targetType, array $convertedChildProperties = [], PropertyMappingConfigurationInterface $configuration = null)

No description

static mixed
convertFromSource(mixed $source, string $targetType)

No description

Details

string[] getSupportedSourceTypes()

No description

Return Value

string[]

string getSupportedTargetType()

No description

Return Value

string

string getTargetTypeForSource(mixed $source, string $originalTargetType, PropertyMappingConfigurationInterface $configuration = null)

No description

Parameters

mixed $source

the source data

string $originalTargetType

the type we originally want to convert to

PropertyMappingConfigurationInterface $configuration

Return Value

string

int getPriority()

Return the priority of this TypeConverter. TypeConverters with a high priority are chosen before low priority.

Return Value

int

bool canConvertFrom(mixed $source, string $targetType)

No description

Parameters

mixed $source

the source data

string $targetType

the type to convert to.

Return Value

bool

true if this TypeConverter can convert from $source to $targetType, false otherwise.

static bool canConvertFromSourceType(string $sourceType, string $targetType)

No description

Parameters

string $sourceType
string $targetType

Return Value

bool

static bool isDenormalizable(string $targetType)

No description

Parameters

string $targetType

Return Value

bool

array getSourceChildPropertiesToBeConverted(mixed $source)

No description

Parameters

mixed $source

Return Value

array

string|null getTypeOfChildProperty(string $targetType, string $propertyName, PropertyMappingConfigurationInterface $configuration)

No description

Parameters

string $targetType
string $propertyName
PropertyMappingConfigurationInterface $configuration

Return Value

string|null

the type of $propertyName in $targetType

mixed|Error convertFrom(mixed $source, string $targetType, array $convertedChildProperties = [], PropertyMappingConfigurationInterface $configuration = null)

No description

Parameters

mixed $source
string $targetType
array $convertedChildProperties
PropertyMappingConfigurationInterface $configuration

Return Value

mixed|Error

the target type, or an error object if a user-error occurred

Exceptions

TypeConverterException

static mixed convertFromSource(mixed $source, string $targetType)

No description

Parameters

mixed $source
string $targetType

Return Value

mixed

Exceptions

TypeConverterException