League\FactoryMuffin\Stores\RepositoryStore::flush PHP Method

flush() protected method

Flushes changes to storage.
protected flush ( ) : boolean
return boolean
    protected function flush()
    {
        $method = $this->methods['flush'];
        if (!method_exists($this->storage, $method) || !is_callable([$this->storage, $method])) {
            throw new FlushMethodNotFoundException(get_class($this->storage), $method);
        }
        $this->storage->{$method}();
        return true;
    }