<?php
namespace FSVendor\WPDesk\Persistence;
use FSVendor\Psr\Container\ContainerInterface;
/**
* Container that persists values only after save method is used.
*
* @package WPDesk\Persistence
*/
interface DeferredPersistentContainer extends PersistentContainer
{
/**
* Save changed data.
*
* @return void
*/
public function save();
/**
* Is there any new data to save.
*
* @return bool
*/
public function is_changed();
/**
* Reset data to last saved values. If remote repository is used the data can be retrived from it.
*
* @return void
*/
public function reset();
}