public __construct ( array $options = [] ) | ||
$options | array |
public function __construct($options = [])
{
foreach ($options as $optionKey => $option) {
if (isset($this->{$optionKey})) {
$this->{$optionKey} = $option;
}
}
}