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
Afficher le fichier
Open project: neos/flow-development-collection
Protected Properties
Méthodes publiques
Méthode |
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 méthode
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 |
|
Résultat |
integer | Neos\Error\Messages\Error |
|
Property Details
$priority protected_oe property
protected int $priority |
Résultat |
integer |
|
$sourceTypes protected_oe property
protected array $sourceTypes |
Résultat |
array |
|
$targetType protected_oe property
protected string $targetType |
Résultat |
string |
|