public function figures($collection)
    {
        $collection = $this->makeCollection($collection);
        $url        = UrlHelper::buildUrl(Urls::URL_COLLECTION, [$collection, self::OPTION_FIGURES]);
        $response   = $this->getConnection()->get($url);

        $data = $response->getJson();

        return $data[self::OPTION_FIGURES];
    }
public function figures($collection)
    {
        $collection = $this->makeCollection($collection);
        $url        = UrlHelper::buildUrl(Urls::URL_COLLECTION, [$collection, self::OPTION_FIGURES]);
        $response   = $this->getConnection()->get($url);

        $data = $response->getJson();

        return $data[self::OPTION_FIGURES];
    }
public function figures ( $ collection ) { $ collection = $ this -> makeCollection ( $ collection ) ; $ url = UrlHelper :: buildUrl ( Urls :: URL_COLLECTION , [ $ collection , self :: OPTION_FIGURES ] ) ; $ response = $ this -> getConnection ( ) -> get ( $ url ) ; $ data = $ response -> getJson ( ) ; return $ data [ self :: OPTION_FIGURES ] ; }
Get figures for a collection

This will throw if the collection cannot be fetched from the server

@throws Exception

@param mixed $collection - collection id as a string or number

@return array - the figures for the collection
Get figures for a collection