PHP Class 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
显示文件
Open project: neos/flow-development-collection
Protected Properties
Public Methods
Method |
Description |
|
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. |
|
Method Details
convertFrom()
public method
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 |
|
return |
integer | Neos\Error\Messages\Error |
|
Property Details
$priority protected_oe property
protected int $priority |
return |
integer |
|
$sourceTypes protected_oe property
protected array $sourceTypes |
return |
array |
|
$targetType protected_oe property
protected string $targetType |
return |
string |
|