public function options($options) { $this->is_local = true; parent::options($options); foreach ($options as $key => $value) { $row = new \stdClass(); $row->key = $key; $row->value = $value; $this->local_options[] = $row; } return $this; }