PHP Класс Adldap\Configuration\DomainConfiguration

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$options array The default values for each key indicate the type of value it requires.

Открытые методы

Метод Описание
__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.

Защищенные методы

Метод Описание
validate ( string $key, mixed $value ) : boolean Validates the new configuration option against its default value to ensure it's the correct type.

Описание методов

__construct() публичный метод

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

get() публичный метод

Throws an exception if the specified option does not exist.
public get ( string $key ) : mixed
$key string
Результат mixed

has() публичный метод

Checks if a configuration option exists.
public has ( string $key ) : boolean
$key string
Результат boolean

set() публичный метод

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() защищенный метод

If an invalid type is given, an exception is thrown.
protected validate ( string $key, mixed $value ) : boolean
$key string
$value mixed
Результат boolean

Описание свойств

$options защищенное свойство

The default values for each key indicate the type of value it requires.
protected array $options
Результат array