src/Pond/Tunes/Search.php
public function setTerms($terms, $reset = false)
    {
        if ($reset) {
            $this->searchTerms = array();
        }

        $searchTerms = array();
        if (!is_array($terms)) {
            $terms = explode(' ', $terms);
        }

        foreach ($terms as $term) {
            $words = explode(' ', $term);

            $searchTerms = array_merge($searchTerms, $words);
        }

        $this->searchTerms = array_merge($this->searchTerms, $searchTerms);

        return $this;
    }
public function setTerms($terms, $reset = false)
    {
        if ($reset) {
            $this->searchTerms = array();
        }

        $searchTerms = array();
        if (!is_array($terms)) {
            $terms = explode(' ', $terms);
        }

        foreach ($terms as $term) {
            $words = explode(' ', $term);

            $searchTerms = array_merge($searchTerms, $words);
        }

        $this->searchTerms = array_merge($this->searchTerms, $searchTerms);

        return $this;
    }
Add search terms. New terms are appended unless $reset is set to `false`.

@param array|string $terms Terms to be searched on.
@param boolean      $reset Set to `true` if previously set terms should be reset.

@return Search