Model/SearchResult.php
public function addFolderResponse($item)
    {
        if (!($item instanceof FolderResponse)) {
            if (is_array($item)) {
                try {
                    $item = new FolderResponse($item);
                } catch (\Exception $e) {
                    trigger_error('Could not auto-instantiate FolderResponse. ' . $e->getMessage(), E_USER_WARNING);
                }
            } elseif (!is_numeric($item)) {
                trigger_error('Array parameter item is not of expected type "FolderResponse"!', E_USER_WARNING);
            }
        }
        $this->results[] = $item;

        return $this;
    }
public function addFolderResponse($item)
    {
        if (!($item instanceof FolderResponse)) {
            if (is_array($item)) {
                try {
                    $item = new FolderResponse($item);
                } catch (\Exception $e) {
                    trigger_error('Could not auto-instantiate FolderResponse. ' . $e->getMessage(), E_USER_WARNING);
                }
            } elseif (!is_numeric($item)) {
                trigger_error('Array parameter item is not of expected type "FolderResponse"!', E_USER_WARNING);
            }
        }
        $this->results[] = $item;

        return $this;
    }
public function addFolderResponse ( $ item ) { if ( ! ( $ item instanceof FolderResponse ) ) { if ( is_array ( $ item ) ) { try { $ item = new FolderResponse ( $ item ) ; } catch ( \ Exception $ e ) { trigger_error ( 'Could not auto-instantiate FolderResponse. ' . $ e -> getMessage ( ) , E_USER_WARNING ) ; } } elseif ( ! is_numeric ( $ item ) ) { trigger_error ( 'Array parameter item is not of expected type "FolderResponse"!' , E_USER_WARNING ) ; } } $ this -> results [ ] = $ item ; return $ this ; }
Adds an object of "FolderResponse" of the SearchResult.

@param FolderResponse|array $item

@return SearchResult
Adds an object of FolderResponse of the SearchResult .