for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* slince routing library
* @author Tao <[email protected]>
*/
namespace Slince\Routing\Exception;
class MethodNotAllowedException extends \Exception
{
* @var array
protected $_allowedMethods = array();
public function __construct(array $allowedMethods, $message = null, $code = 0, $previous = null)
$this->_allowedMethods = array_map('strtoupper', $allowedMethods);
parent::__construct($message, $code, $previous);
}
* Gets the allowed HTTP methods.
* @return array
public function getAllowedMethods()
return $this->_allowedMethods;