public function write(Settings $settings) { if ($this->store->hasKey(self::$key)) { $this->store->update($settings); } else { $this->store->create($settings, self::$key); } }
/** * @param Post $post * @return null */ public function update(Post $post) { $this->store->update($post); }
/** * @param Author $author * @return null */ public function update(Author $author) { $this->store->update($author); }