PHP Class Adldap\Configuration\DomainConfiguration

Datei anzeigen Open project: adldap2/adldap2 Class Usage Examples

Protected Properties

Property Type Description
$options array The default values for each key indicate the type of value it requires.

Public Methods

Method Description
__construct ( array $options = [] ) Constructor.
get ( string $key ) : mixed Returns the value for the specified configuration options.
has ( string $key ) : boolean Checks if a configuration option exists.
set ( string $key, mixed $value ) Sets a configuration option.

Protected Methods

Method Description
validate ( string $key, mixed $value ) : boolean Validates the new configuration option against its default value to ensure it's the correct type.

Method Details

__construct() public method

Constructor.
public __construct ( array $options = [] )
$options array

get() public method

Throws an exception if the specified option does not exist.
public get ( string $key ) : mixed
$key string
return mixed

has() public method

Checks if a configuration option exists.
public has ( string $key ) : boolean
$key string
return boolean

set() public method

Throws an exception if the specified option does not exist, or if it's an invalid type.
public set ( string $key, mixed $value )
$key string
$value mixed

validate() protected method

If an invalid type is given, an exception is thrown.
protected validate ( string $key, mixed $value ) : boolean
$key string
$value mixed
return boolean

Property Details

$options protected_oe property

The default values for each key indicate the type of value it requires.
protected array $options
return array