for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace GFG\Hek\Exceptions;
class MethodNotAllowed extends \InvalidArgumentException implements ResponseInterface
{
/**
* @param string $methodName
*/
public function __construct($methodName)
$message = sprintf('Method %s not allowed', $methodName);
parent::__construct($message);
}
* {@inheritdoc}
public function getResponseCode()
return 405;