\League\FlysystemConfig

Summary

Methods
Properties
Constants
__construct()
get()
has()
set()
setFallback()
No public properties found
No constants found
getDefault()
$settings
$fallback
N/A
No private methods found
No private properties found
N/A

Properties

$settings

$settings : array

Type

array

Methods

__construct()

__construct(array  $settings = array()) 

Constructor.

Parameters

array $settings

get()

get(string  $key, mixed  $default = null) : mixed

Get a setting.

Parameters

string $key
mixed $default

Returns

mixed —

config setting or default when not found

has()

has(string  $key) : boolean

Check if an item exists by key.

Parameters

string $key

Returns

boolean

set()

set(string  $key, mixed  $value) : $this

Set a setting.

Parameters

string $key
mixed $value

Returns

$this

setFallback()

setFallback(\League\Flysystem\Config  $fallback) : $this

Set the fallback.

Parameters

\League\Flysystem\Config $fallback

Returns

$this

getDefault()

getDefault(string  $key, mixed  $default) : mixed

Try to retrieve a default setting from a config fallback.

Parameters

string $key
mixed $default

Returns

mixed —

config setting or default when not found