Skip to content

Commit

Permalink
Add TaskProcessor.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 4ba72bb commit 2a8b82b
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions src/TaskProcessor.php
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;
}
}

0 comments on commit 2a8b82b

Please sign in to comment.