original_string: public function readTypedObject()
      {
           require_once 'Zend/Amf/Parse/TypeLoader.php';
          // get the remote class name
          $className = $this->_stream->readUTF();
          $loader = Zend_Amf_Parse_TypeLoader::loadType($className);
          $returnObject = new $loader();
          $properties = get_object_vars($this->readObject());
          foreach($properties as $key=>$value) {
              if($key) {
                  $returnObject->$key = $value;
              }
          }
          if($returnObject instanceof Zend_Amf_Value_Messaging_ArrayCollection) {
              $returnObject = get_object_vars($returnObject);
          }
          return $returnObject;
      }
code: public function readTypedObject()
      {
           require_once 'Zend/Amf/Parse/TypeLoader.php';
          // get the remote class name
          $className = $this->_stream->readUTF();
          $loader = Zend_Amf_Parse_TypeLoader::loadType($className);
          $returnObject = new $loader();
          $properties = get_object_vars($this->readObject());
          foreach($properties as $key=>$value) {
              if($key) {
                  $returnObject->$key = $value;
              }
          }
          if($returnObject instanceof Zend_Amf_Value_Messaging_ArrayCollection) {
              $returnObject = get_object_vars($returnObject);
          }
          return $returnObject;
      }
code_tokens: public function readTypedObject ( ) { require_once 'Zend/Amf/Parse/TypeLoader.php' ; // get the remote class name $ className = $ this -> _stream -> readUTF ( ) ; $ loader = Zend_Amf_Parse_TypeLoader :: loadType ( $ className ) ; $ returnObject = new $ loader ( ) ; $ properties = get_object_vars ( $ this -> readObject ( ) ) ; foreach ( $ properties as $ key => $ value ) { if ( $ key ) { $ returnObject -> $ key = $ value ; } } if ( $ returnObject instanceof Zend_Amf_Value_Messaging_ArrayCollection ) { $ returnObject = get_object_vars ( $ returnObject ) ; } return $ returnObject ; }
docstring: Read Class that is to be mapped to a server class.
  
  Commonly used for Value Objects on the server
  
  @todo   implement Typed Class mapping
  @return object|array
  @throws Zend_Amf_Exception if unable to load type
docstring_tokens: Read Class that is to be mapped to a server class .