PHP 클래스 Adldap\Configuration\DomainConfiguration

파일 보기 프로젝트 열기: adldap2/adldap2 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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