public function photos($page = 1, $per_page = 10)
    {
        if (! isset($this->photos["{$page}-{$per_page}"])) {
            $photos = self::get(
                "/categories/{$this->id}/photos",
                ['query' => ['page' => $page, 'per_page' => $per_page]]
            );

            $this->photos["{$page}-{$per_page}"] = [
                'body' => self::getArray($photos->getBody(), __NAMESPACE__.'\\Photo'),
                'headers' => $photos->getHeaders()
            ];
        }

        return new ArrayObject(
            $this->photos["{$page}-{$per_page}"]['body'],
            $this->photos["{$page}-{$per_page}"]['headers']
        );
    }
public function photos($page = 1, $per_page = 10)
    {
        if (! isset($this->photos["{$page}-{$per_page}"])) {
            $photos = self::get(
                "/categories/{$this->id}/photos",
                ['query' => ['page' => $page, 'per_page' => $per_page]]
            );

            $this->photos["{$page}-{$per_page}"] = [
                'body' => self::getArray($photos->getBody(), __NAMESPACE__.'\\Photo'),
                'headers' => $photos->getHeaders()
            ];
        }

        return new ArrayObject(
            $this->photos["{$page}-{$per_page}"]['body'],
            $this->photos["{$page}-{$per_page}"]['headers']
        );
    }
public function photos ( $ page = 1 , $ per_page = 10 ) { if ( ! isset ( $ this -> photos [ "{$page}-{$per_page}" ] ) ) { $ photos = self :: get ( "/categories/{$this->id}/photos" , [ 'query' => [ 'page' => $ page , 'per_page' => $ per_page ] ] ) ; $ this -> photos [ "{$page}-{$per_page}" ] = [ 'body' => self :: getArray ( $ photos -> getBody ( ) , __NAMESPACE__ . '\\Photo' ) , 'headers' => $ photos -> getHeaders ( ) ] ; } return new ArrayObject ( $ this -> photos [ "{$page}-{$per_page}" ] [ 'body' ] , $ this -> photos [ "{$page}-{$per_page}" ] [ 'headers' ] ) ; }
Retrieve all the photos for a specific category 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
@return ArrayObject of Photo objects.
@deprecated
@see Collection::photos()
Retrieve all the photos for a specific category on a specific page . Returns an ArrayObject that contains Photo objects .