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