lbry.com/lib/routing/HttpMethodNotAllowedException.class.php
2016-09-06 09:21:44 -04:00

19 lines
397 B
PHP

<?php
namespace Routing;
class HttpMethodNotAllowedException extends HttpException
{
protected $allowedMethods;
public function __construct(array $allowedMethods, $message, $code, Exception $previous)
{
$this->allowedMethods = $allowedMethods;
parent::__construct($message, $code, $previous);
}
public function getAllowedMethods()
{
return $this->allowedMethods;
}
}