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