PHP Класс Neos\Flow\Persistence\Doctrine\ArrayTypeConverter

Наследование: extends Neos\Flow\Property\TypeConverter\AbstractTypeConverter
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$priority integer
$propertyMapper Neos\Flow\Property\PropertyMapper
$sourceTypes array
$targetType string

Открытые методы

Метод Описание
convertFrom ( mixed $source, string $targetType, array $convertedChildProperties = [], Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : mixed | Neos\Error\Messages\Error Actually convert from $source to $targetType, taking into account the fully built $convertedChildProperties and $configuration.

Описание методов

convertFrom() публичный Метод

The return value can be one of three types: - an arbitrary object, or a simple type (which has been created while mapping). This is the normal case. - NULL, indicating that this object should *not* be mapped (i.e. a "File Upload" Converter could return NULL if no file has been uploaded, and a silent failure should occur. - An instance of Error -- This will be a user-visible error message later on. Furthermore, it should throw an Exception if an unexpected failure (like a security error) occurred or a configuration issue happened.
public convertFrom ( mixed $source, string $targetType, array $convertedChildProperties = [], Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : mixed | Neos\Error\Messages\Error
$source mixed
$targetType string
$convertedChildProperties array
$configuration Neos\Flow\Property\PropertyMappingConfigurationInterface
Результат mixed | Neos\Error\Messages\Error the target type, or an error object if a user-error occurred

Описание свойств

$priority защищенное свойство

protected int $priority
Результат integer

$propertyMapper защищенное свойство

protected PropertyMapper,Neos\Flow\Property $propertyMapper
Результат Neos\Flow\Property\PropertyMapper

$sourceTypes защищенное свойство

protected array $sourceTypes
Результат array

$targetType защищенное свойство

protected string $targetType
Результат string