*/
private $requestData = array();
+ /**
+ * Wether this request is valid and can be further processed
+ */
+ private $requestIsValid = false;
+
/**
* Protected constructor
*
// Return the value
return $headerValue;
}
+
+ /**
+ * Getter for request method. This getter might be useful for security filters
+ *
+ * @return $requestMethod Used request method
+ */
+ public final function getRequestMethod () {
+ return $_SERVER['REQUEST_METHOD'];
+ }
+
+ /**
+ * Sets wether the request was valid (default: true)
+ *
+ * @param $isValid Wether the request is valid
+ * @return void
+ */
+ public final function requestIsValid ($isValid = true) {
+ $this->requestIsValid = (bool) $isValid;
+ }
}
// [EOF]