Files

19 lines
440 B
PHP
Raw Permalink Normal View History

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
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
}