vito/app/Contracts/SourceControlProvider.php
Saeed Vaziry 5c72f12490 init
2023-07-02 12:47:50 +02:00

19 lines
449 B
PHP
Executable File

<?php
namespace App\Contracts;
interface SourceControlProvider
{
public function connect(): bool;
public function getRepo(string $repo = null): mixed;
public function fullRepoUrl(string $repo): string;
public function deployHook(string $repo, array $events, string $secret): array;
public function destroyHook(string $repo, string $hookId): void;
public function getLastCommit(string $repo, string $branch): ?array;
}