public function to($type = 'array')
	{
		$rows = [];

		if ($this->rows && $this->count())
		{
			foreach ($this->rows as $row)
			{
				$method = 'to' . ucfirst($type);
				$rows[] = $row->$method();
			}
		}

		return $rows;
	}
public function to($type = 'array')
	{
		$rows = [];

		if ($this->rows && $this->count())
		{
			foreach ($this->rows as $row)
			{
				$method = 'to' . ucfirst($type);
				$rows[] = $row->$method();
			}
		}

		return $rows;
	}
public function to ( $ type = 'array' ) { $ rows = [ ] ; if ( $ this -> rows && $ this -> count ( ) ) { foreach ( $ this -> rows as $ row ) { $ method = 'to' . ucfirst ( $ type ) ; $ rows [ ] = $ row -> $ method ( ) ; } } return $ rows ; }
Outputs rows as given type

@return  array
@since   2.0.0
Outputs rows as given type