original_string: public function serialize($skipObjects = false)
      {
          $this->_prepareData();
          $temporaryData  = $this->toArray();
          $data           = '';
  
          if ($skipObjects) {
              $temporaryData = $this->traveler(
                  'self::_skipObject',
                  null,
                  $temporaryData,
                  true
              );
          }
  
          try {
              $data = Serializer::serialize($temporaryData);
          } catch (ExceptionInterface $exception) {
              $this->_addException($exception);
          }
  
          return $data;
      }
code: public function serialize($skipObjects = false)
      {
          $this->_prepareData();
          $temporaryData  = $this->toArray();
          $data           = '';
  
          if ($skipObjects) {
              $temporaryData = $this->traveler(
                  'self::_skipObject',
                  null,
                  $temporaryData,
                  true
              );
          }
  
          try {
              $data = Serializer::serialize($temporaryData);
          } catch (ExceptionInterface $exception) {
              $this->_addException($exception);
          }
  
          return $data;
      }
code_tokens: public function serialize ( $ skipObjects = false ) { $ this -> _prepareData ( ) ; $ temporaryData = $ this -> toArray ( ) ; $ data = '' ; if ( $ skipObjects ) { $ temporaryData = $ this -> traveler ( 'self::_skipObject' , null , $ temporaryData , true ) ; } try { $ data = Serializer :: serialize ( $ temporaryData ) ; } catch ( ExceptionInterface $ exception ) { $ this -> _addException ( $ exception ) ; } return $ data ; }
docstring: return serialized object data
  
  @param boolean $skipObjects
  @return string
docstring_tokens: return serialized object data