public function set($name, $value) { if ($value === null) { unset($this->vo->{$name}); } else { $this->vo->{$name} = Caster::cast($value); } }
public function set(array $data) { $this->config = $this->cfg->set($this->key, $data); if (!$this->config->get('uuid')) { $this->config->set('uuid', $this->keygen->generate()); $this->cfg->modify($this->config); } }