45 lines
1.0 KiB
PHP
Executable File
45 lines
1.0 KiB
PHP
Executable File
<?php
|
|
|
|
/**
|
|
* DataProxy interface.
|
|
*
|
|
* @category Services
|
|
* @package Services_Twilio
|
|
* @author Neuman Vong <neuman@twilio.com>
|
|
* @license http://creativecommons.org/licenses/MIT/ MIT
|
|
* @link http://pear.php.net/package/Services_Twilio
|
|
*/
|
|
interface Services_Twilio_DataProxy
|
|
{
|
|
/**
|
|
* Retrieve the object specified by key.
|
|
*
|
|
* @param string $key The index
|
|
* @param array $params Optional parameters
|
|
*
|
|
* @return object The object
|
|
*/
|
|
function retrieveData($key, array $params = array());
|
|
|
|
/**
|
|
* Create the object specified by key.
|
|
*
|
|
* @param string $key The index
|
|
* @param array $params Optional parameters
|
|
*
|
|
* @return object The object
|
|
*/
|
|
function createData($key, array $params = array());
|
|
|
|
/**
|
|
* Delete the object specified by key.
|
|
*
|
|
* @param string $key The index
|
|
* @param array $params Optional parameters
|
|
*
|
|
* @return null
|
|
*/
|
|
function deleteData($key, array $params = array());
|
|
}
|
|
|