/** * Constructor. * * @access public * @param string $message Exception message * @param \Exception $previous Previous exception */ public function __construct($message = null, Exception $previous = null) { parent::__construct(403, $message, $previous); }
/** * Constructor. * * @access public * @param array $allowedMethods Allowed methods * @param string $message Exception message * @param \Exception $previous Previous exception */ public function __construct(array $allowedMethods, $message = null, Exception $previous = null) { $this->allowedMethods = $allowedMethods; parent::__construct(405, $message, $previous); }