22 lines
399 B
PHP
22 lines
399 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Library\VK\Resources;
|
|
|
|
use App\Library\VK\VkApiClient;
|
|
|
|
class GroupResource
|
|
{
|
|
public function __construct(private VkApiClient $api) {}
|
|
|
|
public function getById(string $groupId): array
|
|
{
|
|
$result = $this->api->call('groups.getById', [
|
|
'group_id' => $groupId,
|
|
]);
|
|
|
|
return $result['response'] ?? [];
|
|
}
|
|
}
|