PHP Class JamesMoss\Flywheel\Config

Responsible for storing variables used throughout a Flywheel instance
Afficher le fichier Open project: jamesmoss/flywheel Class Usage Examples

Protected Properties

Свойство Type Description
$options
$path

Méthodes publiques

Méthode 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 méthode

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 méthode

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

getPath() public méthode

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

hasAPC() public méthode

public hasAPC ( )

Property Details

$options protected_oe property

protected $options

$path protected_oe property

protected $path