Skip to content

Commit

Permalink
Add CommitInterface.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 d4c44e8 commit 789b022
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions src/Interface/Git/CommitInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?php

declare(strict_types=1);

namespace Ghostwriter\Arm\Interface\Git;

use Ghostwriter\Arm\Interface\Git\Commit\AuthorInterface;
use Ghostwriter\Arm\Interface\Git\Commit\MessageInterface;
use Ghostwriter\Arm\Interface\StringableInterface;

interface CommitInterface extends StringableInterface
{
public function author(): AuthorInterface;

public function branch(): BranchInterface;

public function message(): MessageInterface;

public static function new(AuthorInterface $author, BranchInterface $branch, MessageInterface $message): self;
}

// public function commit(string $commit): string;
//
// public function create(string $commit): string;
//
// 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;

0 comments on commit 789b022

Please sign in to comment.