20 lines
476 B
PHP
20 lines
476 B
PHP
<?php
|
|
|
|
namespace App\Actions\Git\Contracts;
|
|
|
|
use App\Actions\Git\Data\GitAuthenticatedUser;
|
|
use App\Actions\Git\Data\GitRepository;
|
|
use App\Actions\Git\GitProviderKey;
|
|
|
|
interface GitProviderClient
|
|
{
|
|
public function key(): GitProviderKey;
|
|
|
|
public function getAuthenticatedUser(string $baseUrl, string $token): GitAuthenticatedUser;
|
|
|
|
/**
|
|
* @return array<int, GitRepository>
|
|
*/
|
|
public function listRepositories(string $baseUrl, string $token): array;
|
|
}
|