PHP Класс Flintstone\Config

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$config array Config.

Открытые методы

Метод Описание
__construct ( array $config = [] ) Constructor.
getCache ( ) : Flintstone\Cache\CacheInterface | false Get the cache.
getDir ( ) : string Get the dir.
getExt ( ) : string Get the ext.
getFormatter ( ) : Flintstone\Formatter\FormatterInterface Get the formatter.
getSwapMemoryLimit ( ) : integer Get the swap memory limit.
setCache ( mixed $cache ) Set the cache.
setDir ( string $dir ) Set the dir.
setExt ( string $ext ) Set the ext.
setFormatter ( Flintstone\Formatter\FormatterInterface | null $formatter ) Set the formatter.
setGzip ( boolean $gzip ) Set gzip.
setSwapMemoryLimit ( integer $limit ) Set the swap memory limit.
useGzip ( ) : boolean Use gzip?

Защищенные методы

Метод Описание
normalizeConfig ( array $config ) : array Normalize the user supplied config.

Описание методов

__construct() публичный метод

Constructor.
public __construct ( array $config = [] )
$config array

getCache() публичный метод

Get the cache.
public getCache ( ) : Flintstone\Cache\CacheInterface | false
Результат Flintstone\Cache\CacheInterface | false

getDir() публичный метод

Get the dir.
public getDir ( ) : string
Результат string

getExt() публичный метод

Get the ext.
public getExt ( ) : string
Результат string

getFormatter() публичный метод

Get the formatter.
public getFormatter ( ) : Flintstone\Formatter\FormatterInterface
Результат Flintstone\Formatter\FormatterInterface

getSwapMemoryLimit() публичный метод

Get the swap memory limit.
public getSwapMemoryLimit ( ) : integer
Результат integer

normalizeConfig() защищенный метод

Normalize the user supplied config.
protected normalizeConfig ( array $config ) : array
$config array
Результат array

setCache() публичный метод

Set the cache.
public setCache ( mixed $cache )
$cache mixed

setDir() публичный метод

Set the dir.
public setDir ( string $dir )
$dir string

setExt() публичный метод

Set the ext.
public setExt ( string $ext )
$ext string

setFormatter() публичный метод

Set the formatter.
public setFormatter ( Flintstone\Formatter\FormatterInterface | null $formatter )
$formatter Flintstone\Formatter\FormatterInterface | null

setGzip() публичный метод

Set gzip.
public setGzip ( boolean $gzip )
$gzip boolean

setSwapMemoryLimit() публичный метод

Set the swap memory limit.
public setSwapMemoryLimit ( integer $limit )
$limit integer

useGzip() публичный метод

Use gzip?
public useGzip ( ) : boolean
Результат boolean

Описание свойств

$config защищенное свойство

Config.
protected array $config
Результат array