ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
MethodNotAllowedException.php
Go to the documentation of this file.
1<?php
9namespace Slim\Exception;
10
13
15{
21 protected $allowedMethods;
22
31 {
32 parent::__construct($request, $response);
33 $this->allowedMethods = $allowedMethods;
34 }
35
41 public function getAllowedMethods()
42 {
44 }
45}
An exception for terminatinating execution or to throw for unit testing.
__construct(ServerRequestInterface $request, ResponseInterface $response, array $allowedMethods)
Create new exception.
Representation of an outgoing, server-side response.
Representation of an incoming, server-side HTTP request.
Slim Framework (https://slimframework.com)