\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

$fallback

$fallback : \League\Flysystem\Config

Type

Config

Methods

__construct()

__construct(array  $settings = []) : mixed

Constructor.

Parameters

array $settings

Returns

mixed —

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) : bool

Check if an item exists by key.

Parameters

string $key

Returns

bool —

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