You've already forked php-flasher
mirror of
https://github.com/php-flasher/php-flasher.git
synced 2026-04-05 12:32:55 +01:00
34 lines
548 B
PHP
34 lines
548 B
PHP
<?php
|
|
|
|
namespace Flasher\Prime\Storage;
|
|
|
|
use Flasher\Prime\Envelope;
|
|
|
|
interface StorageManagerInterface
|
|
{
|
|
/**
|
|
* @param Envelope[] $envelopes
|
|
*/
|
|
public function flush($envelopes);
|
|
|
|
/**
|
|
* @return Envelope[]
|
|
*/
|
|
public function all();
|
|
|
|
/**
|
|
* @param Envelope $envelope
|
|
*/
|
|
public function add(Envelope $envelope);
|
|
|
|
/**
|
|
* @param Envelope[] $envelopes
|
|
*/
|
|
public function remove($envelopes);
|
|
|
|
/**
|
|
* remove All notifications from storage
|
|
*/
|
|
public function clear();
|
|
}
|