PHP Класс Neos\Flow\Property\TypeConverter\IntegerConverter
* If the source is an integer, it is returned unchanged.
* If the source a numeric string, it is cast to integer
* If the source is a DateTime instance, the UNIX timestamp is returned
Показать файл
Открыть проект
Защищенные свойства (Protected)
Открытые методы
Метод |
Описание |
|
convertFrom ( mixed $source, string $targetType, array $convertedChildProperties = [], Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : integer | Neos\Error\Messages\Error |
Actually convert from $source to $targetType, in fact a noop here. |
|
Описание методов
convertFrom()
публичный Метод
Actually convert from $source to $targetType, in fact a noop here.
public convertFrom ( mixed $source, string $targetType, array $convertedChildProperties = [], Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : integer | Neos\Error\Messages\Error |
$source |
mixed |
|
$targetType |
string |
|
$convertedChildProperties |
array |
|
$configuration |
Neos\Flow\Property\PropertyMappingConfigurationInterface |
|
Результат |
integer | Neos\Error\Messages\Error |
|
Описание свойств
$priority защищенное свойство
protected int $priority |
Результат |
integer |
|
$sourceTypes защищенное свойство
protected array $sourceTypes |
Результат |
array |
|
$targetType защищенное свойство
protected string $targetType |
Результат |
string |
|