Documentation

OptionsInterface

Interface defining a container for client options.

Tags
author

Daniele Alessandri suppakilla@gmail.com

Table of Contents

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

Methods

__get()

Returns the value of the given option.

public __get(string $option) : mixed|null
Parameters
$option : string

Name of the option.

Return values
mixed|null

__isset()

Checks if the given option has been set and does not evaluate to NULL.

public __isset(string $option) : bool
Parameters
$option : string

Name of the option.

Return values
bool

defined()

Checks if the given option has been set by the user upon initialization.

public defined(string $option) : bool
Parameters
$option : string

Name of the option.

Return values
bool

getDefault()

Returns the default value for the given option.

public getDefault(string $option) : mixed|null
Parameters
$option : string

Name of the option.

Return values
mixed|null

Search results