OptionsInterface
- Full name: \Zemit\Support\Options\OptionsInterface
Methods
__construct
public __construct(array $options = null): mixed
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| $options | array | 
initializeOptions
public initializeOptions(array $options = null): void
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| $options | array | 
initialize
public initialize(): void
setOptions
public setOptions(array $options): void
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| $options | array | 
getOptions
public getOptions(): array
setOption
public setOption(string $key, mixed $value = null): void
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| $key | string | |
| $value | mixed | 
getOption
public getOption(string $key, mixed $default = null): mixed
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| $key | string | |
| $default | mixed | 
removeOption
public removeOption(string $key): void
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| $key | string | 
resetOptions
public resetOptions(): void
clearOptions
public clearOptions(): void