Cronario\Manager::getWorkerConfig PHP Method

getWorkerConfig() protected method

protected getWorkerConfig ( null $key = null ) : mixed
$key null
return mixed
    protected function getWorkerConfig($key = null)
    {
        /** @var AbstractWorker $class */
        if (null === static::$workerConfig) {
            $class = $this->workerClass;
            static::$workerConfig = $class::getConfig();
        }
        return null === $key ? static::$workerConfig : static::$workerConfig[$key];
    }