original_string: private function returnOutput()
      {
          $collection = new Collection($this->results);
  
          switch ($this->output) {
              case 'db':
                  return $this->saveToDatabase($collection);
                  break;
              case 'collection':
                  return $collection;
                  break;
              case 'json':
                  return $collection->toJson();
                  break;
              case 'array':
              default:
                  return $collection->toArray();
          }
      }
code: private function returnOutput()
      {
          $collection = new Collection($this->results);
  
          switch ($this->output) {
              case 'db':
                  return $this->saveToDatabase($collection);
                  break;
              case 'collection':
                  return $collection;
                  break;
              case 'json':
                  return $collection->toJson();
                  break;
              case 'array':
              default:
                  return $collection->toArray();
          }
      }
code_tokens: private function returnOutput ( ) { $ collection = new Collection ( $ this -> results ) ; switch ( $ this -> output ) { case 'db' : return $ this -> saveToDatabase ( $ collection ) ; break ; case 'collection' : return $ collection ; break ; case 'json' : return $ collection -> toJson ( ) ; break ; case 'array' : default : return $ collection -> toArray ( ) ; } }
docstring: Return output.
  
  @access private
  @return mixed
docstring_tokens: Return output .