\Amfphp_Core_Common_IVoConverter

interface for Vo Converters.

Summary

Methods
Constants
getNewVoInstance()
markExplicitType()
setScanEnabled()
getScanEnabled()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

getNewVoInstance()

getNewVoInstance(\type $voName) : \typed

creates and returns an instance of of $voName.

Parameters

\type $voName

Returns

\typed —

object or null

markExplicitType()

markExplicitType(mixed $obj) : mixed

sets the the explicit type marker on the object.

Parameters

mixed $obj

Returns

mixed

setScanEnabled()

setScanEnabled(boolean $enabled)

for some protocols it is possible to call convertToType and markExplicitObject directly during deserialization and serialization.

This is typically the case of AMF, but not JSON. In that case this function must be called with enabled set to false, so the plugin does not scan the objects to do it itself. By default scanning is enabled

Parameters

boolean $enabled

getScanEnabled()

getScanEnabled() : boolean

get scan enabled.

Returns

boolean