* Prepares the request data for usage
*
* @return void
- * @todo Needs to be implemented
*/
public function prepareRequestData () {
// Get the "request data" from the command-line argument list
*
* @param $headerName Name of the header
* @return $headerValue Value of the header or 'null' if not found
+ * @throws UnsupportedOperationException This method should never be called
*/
public function getHeader ($headerName) {
- $this->partialStub('Please implement this method.');
+ // Console doesn't have any headers
+ throw new UnsupportedOperationException(array($this, __FUNCTION__, $executorInstance), self::EXCEPTION_UNSPPORTED_OPERATION);
}
/**
* @return $requestMethod Used request method
*/
public final function getRequestMethod () {
+ // @TODO Can't this be 'CONSOLE' ?
return 'LOCAL';
}
*
* @param $cookieName Name of cookie we shall read
* @return $cookieValue Value of cookie or null if not found
+ * @throws UnsupportedOperationException This method should never be called
*/
public final function readCookie ($cookieName) {
- // @TODO There are no cookies on console
- return null;
+ // There are no cookies on console
+ throw new UnsupportedOperationException(array($this, __FUNCTION__, $executorInstance), self::EXCEPTION_UNSPPORTED_OPERATION);
}
}