original_string: public function appendSerialized($data)
      {
          try {
              $data = Serializer::unserialize($data);
          } catch (ExceptionInterface $exception) {
              $this->_addException($exception);
          }
  
          if (is_object($data)) {
              $name = $this->_convertKeyNames(get_class($data));
              $this->appendData($name, $data);
          } elseif (is_array($data)) {
              $this->appendArray($data);
          } else {
              $this->appendData($this->_defaultDataName, $data);
          }
  
          if ($this->_objectCreation) {
              return $this->_afterAppendDataToNewObject();
          }
          return $this;
      }
code: public function appendSerialized($data)
      {
          try {
              $data = Serializer::unserialize($data);
          } catch (ExceptionInterface $exception) {
              $this->_addException($exception);
          }
  
          if (is_object($data)) {
              $name = $this->_convertKeyNames(get_class($data));
              $this->appendData($name, $data);
          } elseif (is_array($data)) {
              $this->appendArray($data);
          } else {
              $this->appendData($this->_defaultDataName, $data);
          }
  
          if ($this->_objectCreation) {
              return $this->_afterAppendDataToNewObject();
          }
          return $this;
      }
code_tokens: public function appendSerialized ( $ data ) { try { $ data = Serializer :: unserialize ( $ data ) ; } catch ( ExceptionInterface $ exception ) { $ this -> _addException ( $ exception ) ; } if ( is_object ( $ data ) ) { $ name = $ this -> _convertKeyNames ( get_class ( $ data ) ) ; $ this -> appendData ( $ name , $ data ) ; } elseif ( is_array ( $ data ) ) { $ this -> appendArray ( $ data ) ; } else { $ this -> appendData ( $ this -> _defaultDataName , $ data ) ; } if ( $ this -> _objectCreation ) { return $ this -> _afterAppendDataToNewObject ( ) ; } return $ this ; }
docstring: set data from serialized string as object data
  if data is an object set one variable where key is an object class name
  
  @param mixed $data
  @return $this
docstring_tokens: set data from serialized string as object data if data is an object set one variable where key is an object class name