/** * @param integer $page * @param integer $perPage * @return array * @throws ApiException */ public function getCommenters($page = null, $perPage = null) { $response = $this->api->getCommenters($page, $perPage); return array_map([$this, 'deserializeCommenter'], $response); }
/** * @param string $domain * @param string $path * @param integer $page * @param integer $perPage * @param string $order * @return array * @throws ApiException */ public function getComments($domain = null, $path = null, $page = null, $perPage = null, $order = null) { $response = $this->api->getComments($page, $perPage, $order, $domain, $path); return array_map([$this, 'deserializeComment'], $response); }