rosavox/source/helpers/storage-interface.php

26 lines
404 B
PHP
Raw Normal View History

<?php
namespace rosavox\helpers\storage;
/**
* @template Key
* @template Value
*/
interface interface_
{
public function setup() : void;
public function list_() : array;
public function read(/*Key */$id)/* : Value*/;
public function create(/*Value */$value)/* : Key*/;
public function update(/*Key */$id, /*Value */$value) : void;
public function delete(/*Key */$id) : void;
}
?>