PluginProbe
Depicter — Popup & Slider Builder / trunk
Depicter — Popup & Slider Builder vtrunk
4.8.1 trunk 1.0.0 1.1.0 1.1.2 1.1.4 1.1.6 1.1.7 1.1.8 1.1.9 1.2.0 1.3.0 1.3.1 1.3.2 1.3.3 1.3.5 1.3.8 1.5.0 1.5.1 1.5.2 1.5.5 1.6.0 1.6.1 1.6.2 1.7.0 All 76 releases
depicter / vendor / averta / core / src / Controllers / RestMethodsInterface.php

RestMethodsInterface.php in Depicter — Popup & Slider Builder trunk, at vendor/averta/core/src/Controllers/RestMethodsInterface.php

59 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace Averta\Core\Controllers;
3
4 use WPEmerge\Requests\RequestInterface;
5 use WPEmerge\View\ViewInterface;
6
7 interface RestMethodsInterface
8 {
9 /**
10 * Retrieves Lists of all entries. (GET)
11 *
12 * @param RequestInterface $request
13 * @param string $view
14 *
15 * @return array|ViewInterface
16 */
17 public function index( RequestInterface $request, $view );
18
19 /**
20 * Adds a new entry. (POST)
21 *
22 * @param RequestInterface $request
23 * @param string $view
24 *
25 * @return array
26 */
27 public function store( RequestInterface $request, $view );
28
29 /**
30 * Displays an entry. (GET)
31 *
32 * @param RequestInterface $request
33 * @param string $view
34 *
35 * @return array|ViewInterface
36 */
37 public function show( RequestInterface $request, $view );
38
39 /**
40 * Updates an entry. (PUT/PATCH)
41 *
42 * @param RequestInterface $request
43 * @param string $view
44 *
45 * @return array|ViewInterface
46 */
47 public function update( RequestInterface $request, $view );
48
49 /**
50 * Removes an entry. (DELETE)
51 *
52 * @param RequestInterface $request
53 * @param string $view
54 *
55 * @return array|ViewInterface
56 */
57 public function destroy( RequestInterface $request, $view );
58 }
59