mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-06-27 13:39:16 +00:00
46 lines
502 B
PHP
46 lines
502 B
PHP
<?php
|
|
namespace Pecee\Controllers;
|
|
|
|
interface IRestController {
|
|
|
|
/**
|
|
* @return void
|
|
*/
|
|
function index();
|
|
|
|
/**
|
|
* @param mixed $id
|
|
* @return void
|
|
*/
|
|
function show($id);
|
|
|
|
/**
|
|
* @return void
|
|
*/
|
|
function store();
|
|
|
|
/**
|
|
* @return void
|
|
*/
|
|
function create();
|
|
|
|
/**
|
|
* View
|
|
* @param mixed $id
|
|
* @return void
|
|
*/
|
|
function edit($id);
|
|
|
|
/**
|
|
* @param mixed $id
|
|
* @return void
|
|
*/
|
|
function update($id);
|
|
|
|
/**
|
|
* @param mixed $id
|
|
* @return void
|
|
*/
|
|
function destroy($id);
|
|
|
|
} |