Skip to content

Commit

Permalink
Add GitInterface.php
Browse files Browse the repository at this point in the history
Signed-off-by: Nathanael Esayeas <nathanael.esayeas@protonmail.com>
  • Loading branch information
ghostwriter committed Jul 17, 2024
1 parent d885b63 commit d4c44e8
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions src/Interface/Git/GitInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?php

declare(strict_types=1);

namespace Ghostwriter\Arm\Interface\Git;

use Ghostwriter\Arm\Interface\Git\Commit\AuthorInterface;
use Ghostwriter\Arm\Tool\GitHubCli\RepositoryInterface;

interface GitInterface
{
public function clone(RepositoryInterface $gitHubCliRepository): void;

public function commit(
RepositoryInterface $gitHubCliRepository,
BranchInterface $branch,
AuthorInterface $author,
CommitInterface $commit,
): void;

public function delete(string $commit): string;

public function exists(string $commit): bool;

public function get(string $commit): string;

public function list(): array;

public function set(string $commit): string;

public static function new(WorkingDirectoryInterface $workingDirectory): self;
}

0 comments on commit d4c44e8

Please sign in to comment.