Cronario\AbstractWorker::getConfig PHP 메소드

getConfig() 최종 공개 정적인 메소드

final public static getConfig ( null $key = null ) : mixed
$key null
리턴 mixed
    public static final function getConfig($key = null)
    {
        $calledClass = get_called_class();
        // Load config
        if (!isset(self::$loadedConfigSet[$calledClass]) || null === self::$loadedConfigSet[$calledClass]) {
            self::$loadedConfigSet[$calledClass] = array_merge(self::$configDefault, static::loadConfig());
        }
        // Get config property
        return null === $key ? self::$loadedConfigSet[$calledClass] : self::$loadedConfigSet[$calledClass][$key];
    }