generated from ghostwriter/wip
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Nathanael Esayeas <nathanael.esayeas@protonmail.com>
- Loading branch information
1 parent
4ba72bb
commit 2a8b82b
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Ghostwriter\Arm; | ||
|
||
use Ghostwriter\Arm\Interface\TaskInterface; | ||
use Ghostwriter\Arm\Interface\TaskProcessorInterface; | ||
use Ghostwriter\Container\List\Providers; | ||
use Override; | ||
|
||
/** @see TaskProcessorTest */ | ||
final readonly class TaskProcessor implements TaskProcessorInterface | ||
{ | ||
public function __construct( | ||
private Providers $provider | ||
) { | ||
} | ||
|
||
#[Override] | ||
public function process(TaskInterface $task): TaskInterface | ||
{ | ||
// foreach ($event->getTasks() as $task) { | ||
// $task(); | ||
// } | ||
|
||
return $task; | ||
} | ||
|
||
public function test(): bool | ||
{ | ||
return true; | ||
} | ||
} |