PHP Interface Phpro\SoapClient\Soap\TypeConverter\TypeConverterInterface

A type converter converts between SOAP and PHP types
Show file Open project: phpro/soap-client Interface Usage Examples

Public Methods

Method Description
convertPhpToXml ( mixed $php ) : string Convert PHP type to XML string.
convertXmlToPhp ( string $xml ) : mixed Convert given XML string to PHP type.
getTypeName ( ) : string Get type name.
getTypeNamespace ( ) : string Get type namespace.

Method Details

convertPhpToXml() public method

Convert PHP type to XML string.
public convertPhpToXml ( mixed $php ) : string
$php mixed PHP type
return string

convertXmlToPhp() public method

Convert given XML string to PHP type.
public convertXmlToPhp ( string $xml ) : mixed
$xml string XML string
return mixed

getTypeName() public method

Get type name.
public getTypeName ( ) : string
return string

getTypeNamespace() public method

Get type namespace.
public getTypeNamespace ( ) : string
return string