public static function collections($search, $page = 1, $per_page = 10)
    {
        $collections = self::get(
            "/search/collections",
            ['query' => [
                    'query' => $search,
                    'page' => $page,
                    'per_page' => $per_page
                ]
            ]
        );

        return self::getPageResult($collections->getBody(), $collections->getHeaders(), Collection::class);
    }
public static function collections($search, $page = 1, $per_page = 10)
    {
        $collections = self::get(
            "/search/collections",
            ['query' => [
                    'query' => $search,
                    'page' => $page,
                    'per_page' => $per_page
                ]
            ]
        );

        return self::getPageResult($collections->getBody(), $collections->getHeaders(), Collection::class);
    }
public static function collections ( $ search , $ page = 1 , $ per_page = 10 ) { $ collections = self :: get ( "/search/collections" , [ 'query' => [ 'query' => $ search , 'page' => $ page , 'per_page' => $ per_page ] ] ) ; return self :: getPageResult ( $ collections -> getBody ( ) , $ collections -> getHeaders ( ) , Collection :: class ) ; }
Retrieve a single page of collection results depending on search results
Returns ArrayObject that contain PageResult object.

@param  string  $search   Search terms.
@param  integer $page     Page from which the photos need to be retrieve
@param  integer $per_page Number of element in a page
@return PageResult
Retrieve a single page of collection results depending on search results Returns ArrayObject that contain PageResult object .