for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace App;
use App\Exception\MethodNotAllowedException;
use Psr\Http\Message\ResponseInterface;
trait RestControllerTrait
{
public function delete(): ResponseInterface
throw new MethodNotAllowedException();
}
public function head(): ResponseInterface
public function get(): ResponseInterface
public function list(): ResponseInterface
public function options(): ResponseInterface
public function patch(): ResponseInterface
public function post(): ResponseInterface
public function put(): ResponseInterface