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();
        }
    }
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();
        }
    }
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 ( ) ; } }
Return output.

@access private
@return mixed
Return output .