PHP Interface Predis\Configuration\OptionsInterface

Author: Daniele Alessandri ([email protected])
Show file Open project: nrk/predis Interface Usage Examples

Public Methods

Method Description
__get ( string $option ) : mixed | null Returns the value of the given option.
__isset ( string $option ) : boolean Checks if the given option has been set and does not evaluate to NULL.
defined ( string $option ) : boolean Checks if the given option has been set by the user upon initialization.
getDefault ( string $option ) : mixed | null Returns the default value for the given option.

Method Details

__get() public method

Returns the value of the given option.
public __get ( string $option ) : mixed | null
$option string Name of the option.
return mixed | null

__isset() public method

Checks if the given option has been set and does not evaluate to NULL.
public __isset ( string $option ) : boolean
$option string Name of the option.
return boolean

defined() public method

Checks if the given option has been set by the user upon initialization.
public defined ( string $option ) : boolean
$option string Name of the option.
return boolean

getDefault() public method

Returns the default value for the given option.
public getDefault ( string $option ) : mixed | null
$option string Name of the option.
return mixed | null