getBody()->getContents(), true); // return array_slice($modules_info, $perPage * ($pageNumber - 1), $perPage); // } // // public function getModulesInfoWithFilters(string $url, int $perPage, int $pageNumber): \Psr\Http\Message\ResponseInterface // { // $modules_info = RESTClient::request($url); // $modules_info = json_decode($modules_info->getBody()->getContents(), true); // return array_slice($modules_info, $perPage * ($pageNumber - 1), $perPage); // } }