public function addFacets($facets) { if (is_array($this->facets)) { $this->facets = array_merge($this->facets, $facets); } else { $this->facets = $facets; } return $this; }