PHP Class Adldap\Configuration\DomainConfiguration

Afficher le fichier Open project: adldap2/adldap2 Class Usage Examples

Protected Properties

Свойство Type Description
$options array The default values for each key indicate the type of value it requires.

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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 méthode

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

get() public méthode

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

has() public méthode

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

set() public méthode

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 méthode

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

Property Details

$options protected_oe property

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