public function likes($page = 1, $per_page = 10, $order_by = 'latest')
    {
        if (! isset($this->likes["{$page}-{$per_page}-{$order_by}"])) {
            $likes = self::get("/users/{$this->username}/likes", [
                'query' => ['page' => $page, 'per_page' => $per_page, 'order_by' => $order_by]
            ]);
        
            $this->likes["{$page}-{$per_page}-{$order_by}"] = [
                'body' => self::getArray($likes->getBody(), __NAMESPACE__.'\\Photo'),
                'headers' => $likes->getHeaders()
            ];
        }

        return new ArrayObject(
            $this->likes["{$page}-{$per_page}-{$order_by}"]['body'],
            $this->likes["{$page}-{$per_page}-{$order_by}"]['headers']
        );
    }
public function likes($page = 1, $per_page = 10, $order_by = 'latest')
    {
        if (! isset($this->likes["{$page}-{$per_page}-{$order_by}"])) {
            $likes = self::get("/users/{$this->username}/likes", [
                'query' => ['page' => $page, 'per_page' => $per_page, 'order_by' => $order_by]
            ]);
        
            $this->likes["{$page}-{$per_page}-{$order_by}"] = [
                'body' => self::getArray($likes->getBody(), __NAMESPACE__.'\\Photo'),
                'headers' => $likes->getHeaders()
            ];
        }

        return new ArrayObject(
            $this->likes["{$page}-{$per_page}-{$order_by}"]['body'],
            $this->likes["{$page}-{$per_page}-{$order_by}"]['headers']
        );
    }
public function likes ( $ page = 1 , $ per_page = 10 , $ order_by = 'latest' ) { if ( ! isset ( $ this -> likes [ "{$page}-{$per_page}-{$order_by}" ] ) ) { $ likes = self :: get ( "/users/{$this->username}/likes" , [ 'query' => [ 'page' => $ page , 'per_page' => $ per_page , 'order_by' => $ order_by ] ] ) ; $ this -> likes [ "{$page}-{$per_page}-{$order_by}" ] = [ 'body' => self :: getArray ( $ likes -> getBody ( ) , __NAMESPACE__ . '\\Photo' ) , 'headers' => $ likes -> getHeaders ( ) ] ; } return new ArrayObject ( $ this -> likes [ "{$page}-{$per_page}-{$order_by}" ] [ 'body' ] , $ this -> likes [ "{$page}-{$per_page}-{$order_by}" ] [ 'headers' ] ) ; }
Retrieve all the photos liked by a specific user on a given page.
Returns an ArrayObject that contains Photo object

@param    integer $page Page from which the photos are to be retrieved
@param    integer $per_page Number of elements on a page
@param string $order_by Order in which to retrieve photos
@return ArrayObject of Photos
Retrieve all the photos liked by a specific user on a given page . Returns an ArrayObject that contains Photo object