convertFrom() публичный Метод

Actually convert from $source to $targetType, by doing a typecast.
public convertFrom ( mixed $source, string $targetType, array $convertedChildProperties = [], Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : float | Neos\Error\Messages\Error
$source mixed
$targetType string
$convertedChildProperties array
$configuration Neos\Flow\Property\PropertyMappingConfigurationInterface
Результат float | Neos\Error\Messages\Error
 /**
  * @test
  */
 public function convertFromDoesntUseLocaleParserIfNoConfigurationGiven()
 {
     $this->assertEquals(84, $this->converter->convertFrom('84.000', 'float'));
     $this->assertEquals(84.42, $this->converter->convertFrom('84.42', 'float'));
 }