class Config

Properties

protected array $config Config.

Methods

__construct(array $config = [])

Constructor.

array
normalizeConfig(array $config)

Normalize the user supplied config.

string
getDir()

Get the dir.

setDir(string $dir)

Set the dir.

string
getExt()

Get the ext.

setExt(string $ext)

Set the ext.

bool
useGzip()

Use gzip?

setGzip(bool $gzip)

Set gzip.

getCache()

Get the cache.

setCache(mixed $cache)

Set the cache.

getFormatter()

Get the formatter.

setFormatter(FormatterInterface|null $formatter)

Set the formatter.

int
getSwapMemoryLimit()

Get the swap memory limit.

setSwapMemoryLimit(int $limit)

Set the swap memory limit.

Details

at line 24
__construct(array $config = [])

Constructor.

Parameters

array $config

at line 42
protected array normalizeConfig(array $config)

Normalize the user supplied config.

Parameters

array $config

Return Value

array

at line 61
string getDir()

Get the dir.

Return Value

string

at line 73
setDir(string $dir)

Set the dir.

Parameters

string $dir

Exceptions

Exception

at line 87
string getExt()

Get the ext.

Return Value

string

at line 101
setExt(string $ext)

Set the ext.

Parameters

string $ext

at line 115
bool useGzip()

Use gzip?

Return Value

bool

at line 125
setGzip(bool $gzip)

Set gzip.

Parameters

bool $gzip

at line 135
CacheInterface|false getCache()

Get the cache.

Return Value

CacheInterface|false

at line 147
setCache(mixed $cache)

Set the cache.

Parameters

mixed $cache

Exceptions

Exception

at line 165
FormatterInterface getFormatter()

Get the formatter.

Return Value

FormatterInterface

at line 177
setFormatter(FormatterInterface|null $formatter)

Set the formatter.

Parameters

FormatterInterface|null $formatter

Exceptions

Exception

at line 195
int getSwapMemoryLimit()

Get the swap memory limit.

Return Value

int

at line 205
setSwapMemoryLimit(int $limit)

Set the swap memory limit.

Parameters

int $limit