original_string: protected function prepareData( $data )
      {
          if ( is_resource( $data ) )
          {
              throw new ezcCacheInvalidDataException( gettype( $data ), array( 'simple', 'array', 'object' ) );
          }
          return new ezcCacheStorageMemoryDataStruct( $data, $this->properties['location'] );
      }
code: protected function prepareData( $data )
      {
          if ( is_resource( $data ) )
          {
              throw new ezcCacheInvalidDataException( gettype( $data ), array( 'simple', 'array', 'object' ) );
          }
          return new ezcCacheStorageMemoryDataStruct( $data, $this->properties['location'] );
      }
code_tokens: protected function prepareData ( $ data ) { if ( is_resource ( $ data ) ) { throw new ezcCacheInvalidDataException ( gettype ( $ data ) , array ( 'simple' , 'array' , 'object' ) ) ; } return new ezcCacheStorageMemoryDataStruct ( $ data , $ this -> properties [ 'location' ] ) ; }
docstring: Wraps the data in an ezcCacheStorageMemoryDataStruct structure in order
  to store it.
  
  @throws ezcCacheInvalidDataException
  If the data submitted can not be handled by this storage (resource).
  
  @param mixed $data Simple type or array
  @return ezcCacheStorageMemoryDataStruct Prepared data
docstring_tokens: Wraps the data in an ezcCacheStorageMemoryDataStruct structure in order to store it .