Kohkimakimoto\Worker\Foundation\Config::__construct PHP Method

__construct() public method

public __construct ( $config = [] )
    public function __construct($config = array())
    {
        if (isset($config["name"])) {
            $this->name = $config["name"];
        } else {
            $this->name = self::DEFAULT_APP_NAME;
        }
        if (isset($config["debug"]) && $config["debug"]) {
            $this->isDebug = true;
        } else {
            $this->isDebug = false;
        }
        if (isset($config["tmp_dir"]) && $config["tmp_dir"]) {
            $this->tmpDir = $config["tmp_dir"];
        } else {
            $this->tmpDir = sys_get_temp_dir();
        }
    }