StorageInterface.php from Payum/Payum
// Source: https://github.com/Payum/Payum | License: MIT | Copyright 2012-2015 Maksim Kotlyar
// Provided via justclaw.it.com; keep this notice with the code.
<?php
namespace Payum\Core\Storage;
use Payum\Core\Exception\InvalidArgumentException;
/**
* @template T of object
*/
interface StorageInterface
{
/**
* @return T
*/
public function create(): object;
/**
* @param T $model
*/
public function support(object $model): bool;
/**
* @param T $model
* @return T
*
* @throws InvalidArgumentException if not supported model given.
*/
public function update(object $model): object;
/**
* @param T $model
*
* @throws InvalidArgumentException if not supported model given.
*/
public function delete
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key