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