Amfphp_Core_Amf_Deserializer::resolveType PHP Method

resolveType() protected method

tries to use the type to get a typed object. If not possible, return a stdClass, with the explicit type marker set if the type was not just an empty string
protected resolveType ( type $typeIdentifier ) : stdClass
$typeIdentifier type
return stdClass or typed object
    protected function resolveType($typeIdentifier)
    {
        if ($typeIdentifier != '') {
            if ($this->voConverter) {
                $obj = $this->voConverter->getNewVoInstance($typeIdentifier);
            } else {
                $obj = new stdClass();
                $explicitTypeField = Amfphp_Core_Amf_Constants::FIELD_EXPLICIT_TYPE;
                $obj->{$explicitTypeField} = $typeIdentifier;
            }
        } else {
            $obj = new stdClass();
        }
        return $obj;
    }