ok

Mini Shell

Direktori : /home2/selectio/public_html/fms-worksuite/vendor/phpro/grumphp/src/Runner/
Upload File :
Current File : /home2/selectio/public_html/fms-worksuite/vendor/phpro/grumphp/src/Runner/TaskRunner.php

<?php

declare(strict_types=1);

namespace GrumPHP\Runner;

use GrumPHP\Collection\TaskResultCollection;
use GrumPHP\Collection\TasksCollection;

class TaskRunner
{
    /**
     * @var TasksCollection
     */
    private $tasks;

    /**
     * @var MiddlewareStack
     */
    private $middleware;

    public function __construct(TasksCollection $tasks, MiddlewareStack $middleware)
    {
        $this->tasks = $tasks;
        $this->middleware = $middleware;
    }

    public function run(TaskRunnerContext $runnerContext): TaskResultCollection
    {
        return $this->middleware->handle(
            $runnerContext->withTasks($this->tasks)
        );
    }
}

Zerion Mini Shell 1.0