PHP Class Neos\Flow\Property\TypeConverter\UriTypeConverter

This converter simply creates a Neos\Flow\Http\Uri instance from the source string.
Inheritance: extends AbstractTypeConverter
Show file Open project: neos/flow-development-collection Class Usage Examples

Protected Properties

Property Type Description
$priority integer
$sourceTypes array
$targetType string

Public Methods

Method Description
convertFrom ( string $source, string $targetType, array $convertedChildProperties = [], Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : Uri | Neos\Error\Messages\Error Converts the given string to a Uri object.

Method Details

convertFrom() public method

Converts the given string to a Uri object.
public convertFrom ( string $source, string $targetType, array $convertedChildProperties = [], Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : Uri | Neos\Error\Messages\Error
$source string The URI to be converted
$targetType string
$convertedChildProperties array
$configuration Neos\Flow\Property\PropertyMappingConfigurationInterface
return Neos\Flow\Http\Uri | Neos\Error\Messages\Error if the input format is not supported or could not be converted for other reasons

Property Details

$priority protected property

protected int $priority
return integer

$sourceTypes protected property

protected array $sourceTypes
return array

$targetType protected property

protected string $targetType
return string