1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43:
<?php
/**
* @author stev leibelt <artodeto@bazzline.net>
* @since 2015-07-07
*/
namespace Net\Bazzline\Component\GenericAgreement\Storage;
use Net\Bazzline\Component\GenericAgreement\Exception\InvalidArgument;
use Net\Bazzline\Component\GenericAgreement\Exception\Runtime;
interface ItemStorageInterface
{
/**
* @param mixed $value
* @param string $key
* @return mixed
* @throws InvalidArgument|Runtime
*/
public function createItem($value, $key = null);
/**
* @param string $key
* @return null
* @throws InvalidArgument|Runtime
*/
public function deleteItem($key);
/**
* @param string $key
* @return null|mixed
* @throws InvalidArgument|Runtime
*/
public function readItem($key);
/**
* @param mixed $value
* @param string $key
* @return mixed
* @throws InvalidArgument|Runtime
*/
public function updateItem($value, $key);
}