@@ -64,13 +64,13 @@ public function __construct($message = null)
6464 $ this ->dateFormat ("H:i:s > " );
6565 }
6666
67- public function message ($ message )
67+ public function message ($ message ) : self
6868 {
6969 $ this ->message = $ message ;
7070 return $ this ;
7171 }
7272
73- public function foreground ($ colour )
73+ public function foreground ($ colour ) : self
7474 {
7575 if (!is_null ($ colour ) && !array_key_exists ($ colour , self ::$ foregroundColours )) {
7676 throw new \Exception ('No such foreground colour ` ' .$ colour .'` ' );
@@ -79,7 +79,7 @@ public function foreground($colour)
7979 return $ this ;
8080 }
8181
82- public function background ($ colour )
82+ public function background ($ colour ) : self
8383 {
8484 if (!is_null ($ colour ) && !array_key_exists ($ colour , self ::$ backgroundColours )) {
8585 throw new \Exception ('No such background colour ` ' .$ colour .'` ' );
@@ -88,25 +88,25 @@ public function background($colour)
8888 return $ this ;
8989 }
9090
91- public function prependDate ($ prependDate )
91+ public function prependDate ($ prependDate ) : self
9292 {
9393 $ this ->prependDate = $ prependDate ;
9494 return $ this ;
9595 }
9696
97- public function dateFormat ($ format )
97+ public function dateFormat ($ format ) : self
9898 {
9999 $ this ->dateFormat = $ format ;
100100 return $ this ;
101101 }
102102
103- public function appendNewLine ($ appendNewLine )
103+ public function appendNewLine ($ appendNewLine ) : self
104104 {
105105 $ this ->appendNewLine = $ appendNewLine ;
106106 return $ this ;
107107 }
108108
109- public function display ($ target =STDOUT )
109+ public function display ($ target =STDOUT ) : bool
110110 {
111111 return fputs ($ target , (string )$ this );
112112 }
0 commit comments