public function statistics($resolution = 'days', $quantity = 30)
    {
        $statistics = self::get("photos/{$this->id}/statistics", ['query' => ['resolution' => $resolution, 'quantity' => $quantity]]);
        $statisticsArray = self::getArray($statistics->getBody(), Stat::class);
        return new ArrayObject($statisticsArray, $statistics->getHeaders());
    }
public function statistics($resolution = 'days', $quantity = 30)
    {
        $statistics = self::get("photos/{$this->id}/statistics", ['query' => ['resolution' => $resolution, 'quantity' => $quantity]]);
        $statisticsArray = self::getArray($statistics->getBody(), Stat::class);
        return new ArrayObject($statisticsArray, $statistics->getHeaders());
    }
public function statistics ( $ resolution = 'days' , $ quantity = 30 ) { $ statistics = self :: get ( "photos/{$this->id}/statistics" , [ 'query' => [ 'resolution' => $ resolution , 'quantity' => $ quantity ] ] ) ; $ statisticsArray = self :: getArray ( $ statistics -> getBody ( ) , Stat :: class ) ; return new ArrayObject ( $ statisticsArray , $ statistics -> getHeaders ( ) ) ; }
Retrieve statistics for a photo

@param string $resolution
@param int $quantity
@return ArrayObject
Retrieve statistics for a photo