‪TYPO3CMS  ‪main
TYPO3\CMS\Extbase\Property\TypeConverter\IntegerConverter Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Property\TypeConverter\IntegerConverter:
TYPO3\CMS\Extbase\Property\TypeConverter\AbstractTypeConverter TYPO3\CMS\Extbase\Property\TypeConverterInterface TYPO3\CMS\Core\SingletonInterface

Public Member Functions

int TYPO3 CMS Extbase Error Error convertFrom ($source, string $targetType, array $convertedChildProperties=[], PropertyMappingConfigurationInterface $configuration=null)
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Extbase\Property\TypeConverter\AbstractTypeConverter
 getTargetTypeForSource ($source, string $originalTargetType, PropertyMappingConfigurationInterface $configuration=null)
 
 getSourceChildPropertiesToBeConverted ($source)
 
 getTypeOfChildProperty (string $targetType, string $propertyName, PropertyMappingConfigurationInterface $configuration)
 

Detailed Description

Converter which transforms a simple type to an integer, by simply casting it.

Definition at line 26 of file IntegerConverter.php.

Member Function Documentation

◆ convertFrom()

int TYPO3 CMS Extbase Error Error TYPO3\CMS\Extbase\Property\TypeConverter\IntegerConverter::convertFrom (   $source,
string  $targetType,
array  $convertedChildProperties = [],
PropertyMappingConfigurationInterface  $configuration = null 
)

Actually convert from $source to $targetType, in fact a noop here.

Parameters
int | string | null$source
\TYPO3\CMS\Extbase\Property\PropertyMappingConfigurationInterface$configuration
Returns
‪int|\TYPO3\CMS\Extbase\Error\Error

Implements TYPO3\CMS\Extbase\Property\TypeConverterInterface.

Definition at line 35 of file IntegerConverter.php.