PHP Class Xinax\LaravelGettext\Config\ConfigManager

Show file Open project: xinax/laravel-gettext Class Usage Examples

Protected Properties

Property Type Description
$config Xinax\LaravelGettext\Config\Models\Config Config model

Public Methods

Method Description
__construct ( array $config = null )
create ( null $config = null ) : static Get new instance of the ConfigManager
get ( ) : Config Get the config model

Protected Methods

Method Description
generateFromArray ( array $config ) : Config Creates a configuration container and checks the required fields

Method Details

__construct() public method

public __construct ( array $config = null )
$config array

create() public static method

Get new instance of the ConfigManager
public static create ( null $config = null ) : static
$config null
return static

generateFromArray() protected method

Creates a configuration container and checks the required fields
protected generateFromArray ( array $config ) : Config
$config array
return Xinax\LaravelGettext\Config\Models\Config

get() public method

Get the config model
public get ( ) : Config
return Xinax\LaravelGettext\Config\Models\Config

Property Details

$config protected property

Config model
protected Config,Xinax\LaravelGettext\Config\Models $config
return Xinax\LaravelGettext\Config\Models\Config