Job parameter accessor

When a job (or a component within a job) can be working with a parameterized value, it can rely on a JobParameterAccessorInterface instance to retrieve that value.

<?php

use Yokai\Batch\Job\JobInterface;
use Yokai\Batch\Job\Parameters\JobParameterAccessorInterface;
use Yokai\Batch\JobExecution;

class FooJob implements JobInterface
{
    public function __construct(
        private JobParameterAccessorInterface $path,
    ) {
    }

    public function execute(JobExecution $jobExecution): void
    {
        /** @var string $path */
        $path = $this->path->get($jobExecution);
        // do something with $path
    }
}

What types of parameter accessors exists?

Built-in parameter accessors:

Parameter accessors from bridges: