PHP Class Flintstone\Config

Afficher le fichier Open project: fire015/flintstone Class Usage Examples

Protected Properties

Свойство Type Description
$config array Config.

Méthodes publiques

Méthode Description
__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?

Méthodes protégées

Méthode Description
normalizeConfig ( array $config ) : array Normalize the user supplied config.

Method Details

__construct() public méthode

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

getCache() public méthode

Get the cache.
public getCache ( ) : Flintstone\Cache\CacheInterface | false
Résultat Flintstone\Cache\CacheInterface | false

getDir() public méthode

Get the dir.
public getDir ( ) : string
Résultat string

getExt() public méthode

Get the ext.
public getExt ( ) : string
Résultat string

getFormatter() public méthode

Get the formatter.
public getFormatter ( ) : Flintstone\Formatter\FormatterInterface
Résultat Flintstone\Formatter\FormatterInterface

getSwapMemoryLimit() public méthode

Get the swap memory limit.
public getSwapMemoryLimit ( ) : integer
Résultat integer

normalizeConfig() protected méthode

Normalize the user supplied config.
protected normalizeConfig ( array $config ) : array
$config array
Résultat array

setCache() public méthode

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

setDir() public méthode

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

setExt() public méthode

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

setFormatter() public méthode

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

setGzip() public méthode

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

setSwapMemoryLimit() public méthode

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

useGzip() public méthode

Use gzip?
public useGzip ( ) : boolean
Résultat boolean

Property Details

$config protected_oe property

Config.
protected array $config
Résultat array