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
파일 보기
프로젝트 열기: neos/flow-development-collection
보호된 프로퍼티들
공개 메소드들
메소드 |
설명 |
|
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. |
|
메소드 상세
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 |
|
프로퍼티 상세
$sourceTypes 보호되어 있는 프로퍼티
protected array $sourceTypes |
리턴 |
array |
|
protected string $targetType |
리턴 |
string |
|