Skip to content

Commit

Permalink
Add WorkingDirectory.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 9045ee7 commit 4ba72bb
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/WorkingDirectory.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?php

declare(strict_types=1);

namespace Ghostwriter\Arm;

use Ghostwriter\Arm\Interface\Git\WorkingDirectoryInterface;
use Override;

final readonly class WorkingDirectory implements WorkingDirectoryInterface
{
public function __construct(
private string $workingDirectory
) {
}

#[Override]
public function toString(): string
{
return $this->workingDirectory;
}

#[Override]
public static function new(string $workingDirectory): self
{
return new self($workingDirectory);
}
}

0 comments on commit 4ba72bb

Please sign in to comment.