for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace SimpleRoute\Exception;
final class MethodNotAllowedException extends \Exception
{
/**
* @param string $method
* @param string[] $allowedMethods
*/
public function __construct($method, array $allowedMethods)
parent::__construct($method . ' method is not allowed, must be ' . implode(', ', $allowedMethods));
}