mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-06-15 18:23:26 +03:00
39 lines
653 B
PHP
39 lines
653 B
PHP
<?php
|
|
class ResourceController implements \Pecee\Controllers\IResourceController
|
|
{
|
|
|
|
public function index() : ?string
|
|
{
|
|
return 'index';
|
|
}
|
|
|
|
public function show($id) : ?string
|
|
{
|
|
return 'show ' . $id;
|
|
}
|
|
|
|
public function store() : ?string
|
|
{
|
|
return 'store';
|
|
}
|
|
|
|
public function create() : ?string
|
|
{
|
|
return 'create';
|
|
}
|
|
|
|
public function edit($id) : ?string
|
|
{
|
|
return 'edit ' . $id;
|
|
}
|
|
|
|
public function update($id) : ?string
|
|
{
|
|
return 'update ' . $id;
|
|
}
|
|
|
|
public function destroy($id) : ?string
|
|
{
|
|
return 'destroy ' . $id;
|
|
}
|
|
} |