2016-09-06 09:18:25 -04:00
|
|
|
<?php
|
2016-09-05 18:19:12 -04:00
|
|
|
|
|
|
|
|
namespace Routing;
|
|
|
|
|
|
2016-09-06 09:18:25 -04:00
|
|
|
class HttpMethodNotAllowedException extends HttpException
|
|
|
|
|
{
|
2018-05-21 11:49:15 -04:00
|
|
|
protected $allowedMethods;
|
2016-09-06 09:18:25 -04:00
|
|
|
|
2026-07-27 00:10:38 +02:00
|
|
|
public function __construct(array $allowedMethods, $message = "", $code = 0, ?Exception $previous = null)
|
2018-05-21 11:49:15 -04:00
|
|
|
{
|
|
|
|
|
$this->allowedMethods = $allowedMethods;
|
|
|
|
|
parent::__construct($message, $code, $previous);
|
|
|
|
|
}
|
2016-09-06 09:18:25 -04:00
|
|
|
|
2018-05-21 11:49:15 -04:00
|
|
|
public function getAllowedMethods()
|
|
|
|
|
{
|
|
|
|
|
return $this->allowedMethods;
|
|
|
|
|
}
|
2016-09-06 09:18:25 -04:00
|
|
|
}
|