PHP Class JamesMoss\Flywheel\Config

Responsible for storing variables used throughout a Flywheel instance
Mostrar archivo Open project: jamesmoss/flywheel Class Usage Examples

Protected Properties

Property Type Description
$options
$path

Public Methods

Method Description
__construct ( string $path, array $options = [] ) Constructor
getOption ( string $name ) : mixed Gets a specific option from the config
getPath ( ) : string Gets the path set during initialisation
hasAPC ( )

Method Details

__construct() public method

Constructor
public __construct ( string $path, array $options = [] )
$path string The full path to a writeable directory, with or without a trailing slash.
$options array Any other configuration options.

getOption() public method

Gets a specific option from the config
public getOption ( string $name ) : mixed
$name string The name of the option to return.
return mixed The value of the option if it exists or null if it doesnt.

getPath() public method

Gets the path set during initialisation
public getPath ( ) : string
return string The full file path, with no trailing slash.

hasAPC() public method

public hasAPC ( )

Property Details

$options protected_oe property

protected $options

$path protected_oe property

protected $path