Continued:
[core.git] / framework / main / interfaces / response / class_Responseable.php
index 0a302497048c019c69374193876f582afe8b61c3..f92b1401f03eddb57c1e0820b8ac9dcbc8e93e64 100644 (file)
@@ -34,7 +34,7 @@ interface Responseable extends FrameworkInterface {
         * @param       $status         New response status
         * @return      void
         */
-       function setResponseStatus ($status);
+       function setResponseStatus (string $status);
 
        /**
         * Adds a header to the response. This method "wraps" the direct header()
@@ -47,7 +47,7 @@ interface Responseable extends FrameworkInterface {
         * @param       $value  Value of header element
         * @return      void
         */
-       function addHeader ($name, $value);
+       function addHeader (string $name, $value);
 
        /**
         * "Writes" data to the response body
@@ -55,7 +55,7 @@ interface Responseable extends FrameworkInterface {
         * @param       $output         Output we shall sent in the HTTP response
         * @return      void
         */
-       function writeToBody ($output);
+       function writeToBody (string $output);
 
        /**
         * Flushs the cached HTTP response to the outer world
@@ -66,7 +66,7 @@ interface Responseable extends FrameworkInterface {
         * @throws      ResponseHeadersAlreadySentException             Thrown if headers are
         *                                                                                                      already sent
         */
-       function flushBuffer ($force = false);
+       function flushBuffer (bool $force = false);
 
        /**
         * Adds a fatal message id to the response. The added messages can then be
@@ -75,7 +75,7 @@ interface Responseable extends FrameworkInterface {
         * @param       $messageId      The message id we shall add
         * @return      void
         */
-       function addFatalMessage ($messageId);
+       function addFatalMessage (string $messageId);
 
        /**
         * Adds a cookie to the response
@@ -98,7 +98,7 @@ interface Responseable extends FrameworkInterface {
         * @return      void
         * @throws      ResponseHeadersAlreadySentException             If headers are already sent
         */
-       function redirectToConfiguredUrl ($configEntry);
+       function redirectToConfiguredUrl (string $configEntry);
 
        /**
         * Expires the given cookie if it is set
@@ -106,7 +106,7 @@ interface Responseable extends FrameworkInterface {
         * @param       $cookieName             Cookie to expire
         * @return      void
         */
-       function expireCookie ($cookieName);
+       function expireCookie (string $cookieName);
 
        /**
         * Refreshs a given cookie. This will make the cookie live longer
@@ -114,6 +114,6 @@ interface Responseable extends FrameworkInterface {
         * @param       $cookieName             Cookie to refresh
         * @return      void
         */
-       function refreshCookie ($cookieName);
+       function refreshCookie (string $cookieName);
 
 }