ParamOpts
A trait that provides a method for the Param* classes constructors to initialize instance properties using an associative array of option names. Exceptions and aliases are also supported.
Table of Contents
- __construct_opts() : mixed
- Set instance properties based on an array of options.
Methods
__construct_opts()
Set instance properties based on an array of options.
protected
__construct_opts(array<string|int, mixed> $opts[, array<string|int, mixed> $exceptions = [] ][, array<string|int, mixed> $aliases = [] ]) : mixed
Parameters
- $opts : array<string|int, mixed>
-
The associative array of options passed.
- $exceptions : array<string|int, mixed> = []
-
A flat array of property/option names to skip.
- $aliases : array<string|int, mixed> = []
-
An associative array of "alias" => "property".