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