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

        $photosArray = self::getArray($photos->getBody(), get_called_class());

        return new ArrayObject($photosArray, $photos->getHeaders());
    }
public static function all($page = 1, $per_page = 10, $order_by = 'latest')
    {
        $photos = self::get("/photos", [
            'query' => ['page' => $page, 'per_page' => $per_page, 'order_by' => $order_by]
        ]);

        $photosArray = self::getArray($photos->getBody(), get_called_class());

        return new ArrayObject($photosArray, $photos->getHeaders());
    }
public static function all ( $ page = 1 , $ per_page = 10 , $ order_by = 'latest' ) { $ photos = self :: get ( "/photos" , [ 'query' => [ 'page' => $ page , 'per_page' => $ per_page , 'order_by' => $ order_by ] ] ) ; $ photosArray = self :: getArray ( $ photos -> getBody ( ) , get_called_class ( ) ) ; return new ArrayObject ( $ photosArray , $ photos -> getHeaders ( ) ) ; }
Retrieve all the photos on a specific page.
Returns an ArrayObject that contains Photo objects.

@param  integer $page Page from which the photos need to be retrieve
@param  integer $per_page Number of element in a page
@param string $order_by Order in which to retrieve photos
@return ArrayObject of Photos
Retrieve all the photos on a specific page . Returns an ArrayObject that contains Photo objects .