public function getFilters($to_array = true) {
		if ($to_array === true) {
			return $this->filters->toArray();
		}

		return $this->filters;
	}
public function getFilters($to_array = true) {
		if ($to_array === true) {
			return $this->filters->toArray();
		}

		return $this->filters;
	}
public function getFilters ( $ to_array = true ) { if ( $ to_array === true ) { return $ this -> filters -> toArray ( ) ; } return $ this -> filters ; }
Get all filters

@param bool $to_array If true will return filters as array. Default set to false.

@return array|Collection
Get all filters