PHP Класс JamesMoss\Flywheel\Config

Responsible for storing variables used throughout a Flywheel instance
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$options
$path

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

Метод Описание
__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 ( )

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

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

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() публичный Метод

Gets a specific option from the config
public getOption ( string $name ) : mixed
$name string The name of the option to return.
Результат mixed The value of the option if it exists or null if it doesnt.

getPath() публичный Метод

Gets the path set during initialisation
public getPath ( ) : string
Результат string The full file path, with no trailing slash.

hasAPC() публичный Метод

public hasAPC ( )

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

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

protected $options

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

protected $path